-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cors-allow-headers does not allow wildcard #10501
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I think you need to write a step-by-step instructions/guide that someone can copy/paste from a reproduce on a minikube/kind cluster. And also add the data like the requests you sent, the responses you got, the controller, the ingress, the logs of controller, etc etc etc. It will help a reader to understand the issue. Currently there is no data here that is actionable. Like there is no ingress visible as output of /remove-kind bug |
@longwuyuan there is no need to do that. The code in the controller and actual documentation do not allow wildcard on allow-headers but it does on expose-headers. I clearly pointed the actual code where the problem is, the regex value and docs need to be similar to the bit of code on expose-headers. Don't know why we have to overcomplicate things... |
Then its beyond my skills. Need to wait for an expert to comment. |
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
This would be awesome if it could be implemented! 🙏 It is a standard way |
|
Which PR ? |
There is none (yet). Just wanted to check if more than a PR is necessary due to your statement in the past.
I am by no means an expert on that topic but I could try to create a PR targeting that issue. |
Gentle nudge to merge in the PR if its ready. Would love to use a wildcard for cors-allow-headers. |
What happened:
Tried to set wildcard value for
nginx.ingress.kubernetes.io/cors-allow-headers
.What you expected to happen:
The value is allowed as per:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Headers
similar to:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Expose-Headers
Anything else we need to know:
Don't know why the allow-headers is treated differently:
from
See:
/internal/ingress/annotations/cors/main.go
The text was updated successfully, but these errors were encountered: