-
Notifications
You must be signed in to change notification settings - Fork 222
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
AllowAll and Access-Control-Expose-Headers. #79
Comments
Would you be willing to submit a PR? |
Via echoing back all headers in a wrapped response writer since browsers don't currently support the wildcard. Fixes rs#79
Via echoing back all headers in a wrapped response writer since browsers don't currently support the wildcard. Fixes rs#79
Sure thing, PR up. |
Any update on this? I think this is causing me some issues. |
I thought about this, and I don't think it can be done. In general, the wrapped handler may write to the response body; and after that, it would be too late for the middleware to include another response header ( One thing you can do is include the following header: Access-Control-Expose-Headers: * but that's only compatible with anonymous (as opposed to credentialed) access. |
@rs Because |
Just a suggestion, since wildcard for Access-Control-Expose-Headers isn't widely supported yet, I would recommend filling Access-Control-Expose-Headers in the AllowAll configuration with the result of whatever is set in the wrapped handler minus any of the 6 default values and other Access-Control-* headers.
The text was updated successfully, but these errors were encountered: