Reputation: 8596
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
Reputation: 8596
Fixed by adding --cors-allowed-origins=["http://*"] argument to /etc/default/kube-apiserver file. Then restarted to kube-apiserver.
Upvotes: 6