-
-
Notifications
You must be signed in to change notification settings - Fork 67
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 - allowing content-type on headers #171
Comments
I was solving this issue with @raphaelpereira, and I saw we both opened a PR for that. Please, fell free to close one of them 😄 |
Hi @g-belmonte and @raphaelpereira Sorry for the slow response. Week has been mightily busy. Great that you guys made it work! (and made me aware of the issue 😃 ) #172 (and #173) covers the most common case with Content-Type, but better to cover it completely. Since request headers will have no side-effects with Resgate, and attempts to forge headers such as But, with those changes, I actually made my own branch where the https://github.com/resgateio/resgate/tree/feature/gh-171-cors-access-control-allow-headers If you have the time, please try it out to see if it solves your issue. |
No worries, @jirenius! Actually, thanks for spending time taking a look at this issue. Time is a scarce resource 😃 Well, my fix worked until I had to do a request with authorization. Then I had to add |
And yes, your branch is working perfectly 😄 👍 |
Great! Thanks for the help. I'll have the branch merged to develop, and then release a patch version of Resgate instead of waiting for next minor release. |
…trol-allow-headers Feature/gh 171 cors access control allow headers
Resolved in #174 |
Greetings!
I've been dealing with an application that has different servers for the frontend and its API. Resgate is the entrypoint for the API, and I was trying to do some REST requests from the frontend, but having trouble when setting the header "Content-Type: application/json", because resgate's answer didn't have the header "Access-Control-Allow-Headers: content-type".
I added it to the code, and things started to work perfectly for me.
If you think this change might bring value to the project, here's the PR: #173
The text was updated successfully, but these errors were encountered: