You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks, Let's say I want to always return a 'Origin:' header (see: http://www.w3.org/TR/cors/). How can I do that? For an appmod, or yaws-page that is easy, but how about index.html or Javascript files being served? Perhaps a server-config <header>Origin: http://example.com </header> could work?
Cheers, Tobbe
The text was updated successfully, but these errors were encountered:
There are drawbacks to this, of course, which is that this code doesn't handle query parameters (though it could), and that the extra header is included in the response even if the result is a 404 or other error.
Still, adding some sort of config option wouldn't be a bad idea. Adding a URI matching capability for this would be handy, something along the lines of "if you see a URI matching this pattern add these headers to the response."
Hi folks, Let's say I want to always return a 'Origin:' header (see: http://www.w3.org/TR/cors/). How can I do that? For an appmod, or yaws-page that is easy, but how about index.html or Javascript files being served? Perhaps a server-config <header>Origin: http://example.com </header> could work?
Cheers, Tobbe
The text was updated successfully, but these errors were encountered: