title: How to enable CORS in Kubernetes with Traefik
body: <p>I am trying to enable CORS on ingress in kubernetes running traefik. So that in the response header I could add CORS origin to be allowed to every host for now.
  How can I do that?
  Below is the k8 ingress.yml file.</p>
  <pre><code>apiVersion: networking.k8s.io/v1beta1
  kind: Ingress
  metadata:
    name: test-ingress
    namespace: test
    labels:
      app: test-cors-app
    annotations:
      kubernetes.io/ingress.class: traefik
  spec:
    rules:
    - host: company.host
      http:
        paths:
        - path: /
          backend:
            serviceName: test-service
            servicePort: 80
  </code></pre>
  <p><strong>UPDATE</strong> I have traefik 1.7</p>