Skip to content

how to Access-Control-Allow-Origin setting? #3347

Answered by brandond
n-guitar asked this question in Q&A
Discussion options

You must be logged in to vote

I think you're looking for: https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/#:~:text=--cors-allowed-origins

For K3s you can pass this as --kube-apiserver-arg=cors-allowed-origins=X

Keep in mind that the Kubernetes apiserver should not, in general, be exposed directly to the internet.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@n-guitar
Comment options

Answer selected by n-guitar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3335 on May 19, 2021 08:11.