title: How to enable CORS with ingress without using nginx?
body: <p>I'm trying to setup RESTful API application with Kubernetes.  I have a barebones setup with a cluster, static IP address, app deployed with exposed service of type NodePort, and an ingress configured with a managed certificate for SSL.  I need to enable CORS and I am not yet using nginx.  Is it possible, or do I need to install nginx instead of the default gce class? </p>
  
  <p>Here is my ingress.yaml</p>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Ingress
  metadata:
    name: artsdata-ingress
    annotations:
      kubernetes.io/ingress.global-static-ip-name: "artsdasta-static-ip"
      networking.gke.io/managed-certificates: artsdata-certificate
      ingress.kubernetes.io/enable-cors: "true"
  spec:
    backend:
      serviceName: artsdata-kg
      servicePort: 80
  </code></pre>
  
  <p>To check I am using curl as follows:</p>
  
  <pre><code>curl -H "Access-Control-Request-Method: GET" -H "Origin: http://localhost" --head http://db.artsdata.ca
  </code></pre>
  
  <p>I am expecting the response to include Access-Control-Allow-*</p>