amazon-apigateway-ingress-controller icon indicating copy to clipboard operation
amazon-apigateway-ingress-controller copied to clipboard

Cors?

Open cmthomps opened this issue 4 years ago • 1 comments

Is there a way to add the nginx cors annotations using the apigateway ingress? I've tried adding the following annotations:

apigateway.ingress.kubernetes.io/enable-cors: "true"
apigateway.ingress.kubernetes.io/cors-allow-methods: "DELETE, PUT, GET, POST, OPTIONS"
apigateway.ingress.kubernetes.io/cors-allow-origin: "*"
apigateway.ingress.kubernetes.io/cors-allow-credentials: "true" 

And

nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "DELETE, PUT, GET, POST, OPTIONS"
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
nginx.ingress.kubernetes.io/cors-allow-credentials: "true" 

But neither result in the cors headers coming through.

Thanks, Craig

cmthomps avatar Apr 10 '20 13:04 cmthomps

No this feature is not supported yet.

Magizhchi avatar May 10 '20 23:05 Magizhchi