Enabling CORS in Kubernetes API

12/6/2015

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?

-- Dimuthu
cors
kubernetes

1 Answer

12/6/2015

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

-- Dimuthu
Source: StackOverflow