问题
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?
回答1:
Fixed by adding --cors-allowed-origins=["http://*"] argument to /etc/default/kube-apiserver file. Then restarted to kube-apiserver.
来源:https://stackoverflow.com/questions/34117640/enabling-cors-in-kubernetes-api