Dimuthu
Dimuthu

Reputation: 8596

Enabling CORS in Kubernetes API

Is there a way I can enable CORS on Kubernetes API so that I can send ajax requests to Kubernetes API with a different domain?

Upvotes: 4

Views: 2361

Answers (1)

Dimuthu
Dimuthu

Reputation: 8596

Fixed by adding --cors-allowed-origins=["http://*"] argument to /etc/default/kube-apiserver file. Then restarted to kube-apiserver.

Upvotes: 6

Related Questions