-
Notifications
You must be signed in to change notification settings - Fork 99
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
serve the way w3c sez to do it #103
base: gh-pages
Are you sure you want to change the base?
Conversation
if ($cors = OP) { | ||
add_header 'Access-Control-Allow-Origin' $http_origin; | ||
# these are only needed on OPTIONS | ||
add_header 'Access-Control-Allow-Credentials' 'true'; # techically only needed if doing credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment on line 35 makes it seem like Access-Control-Allow-Credentials are only required on OPTIONS requests, but it is needed on both the preflight and the actual request (if it is used).
feedback taken. code adjusted. --timball |
pull code ? |
Sorry I'm traveling these past two weeks. I'll try to get to this by the On Mon, Jun 22, 2015 at 10:17 PM timball [email protected] wrote:
|
So what is the current status of permissive CORS setup for nginx, @monsur? I skimmed through all suggestion for past 6 years and this is what I found:
|
The previous version of the nginx configs did not follow the recommendations of the w3c and as a result some clients would balk at the headers being served. This PR fixes issue #102.
--timball