-
Notifications
You must be signed in to change notification settings - Fork 61
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
Question: What is the easiest way to deal with CORS? #56
Comments
I am doing this manually e.g.
But I wonder if goweb should have some kind of convenience method to do this, if it already have one I haven't found. |
Hmm… that's not a bad idea at all. What kind of interface would you expect? Do you think it should go into a On 10 Oct 2013, at 15:33, Sebastian Porto [email protected] wrote:
|
It would be nice to have a simple catch all method like:
don't really know what kind of options would you pass, I haven't done too much work with CORS yet. |
Would using a On 17 Oct 2013, at 04:44, Sebastian Porto [email protected] wrote:
|
Sorry, closed this by mistake, when trying to comment. Looking at the documentation MapBefore could be more flexible, or it could be some special handler you pass to Map:
|
I quite like that - fancy doing a PR? |
I would like to, if I can find the spare time to have a go I will do it. Thanks |
I have a client app in a different domain so the browser is trying to do a preflight request. e.g.
I would like goweb to generate the necessary response for any request coming for a particular url e.g.
Can you please give me an example on how to deal with this? Thanks
The text was updated successfully, but these errors were encountered: