-
Notifications
You must be signed in to change notification settings - Fork 689
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
Can't get CORS filter to work #458
Comments
Thank you for reporting this. I will dive into this problem soon. |
I think the problem is the Line 182 in 8dd9eb8
In this function, it is better to support "*" .
|
@weijunji thank you for getting back on this ; I will make the change you suggested |
have a look at #463 . I will create a test before merging it |
it will be included in the next version |
First of all, thank you for this amazing framework. It's very mature and I rarely encounter any concerning issue.
I've read the issues (if not all) related on the CORS in this repo. But it seems that I can't get it to work.
Here are my research & efforts:
Currently my code is something like this (unrelated code is omitted):
Anything I missed here?
The go.mod content:
Btw I use docker-compose to simulate cross origin and to see if CORS issue still happen.
Also, probably a bit diverge from scope, but I noticed during CORS debugging, that the trace logger (#139 (comment)) won't work if I use restful.DefaultContainer
Thanks in advance.
The text was updated successfully, but these errors were encountered: