monsur / enable-cors.org

Advocacy for CORS
http://enable-cors.org/
208 stars 98 forks source link

Nginx > add_header missing "always" #106

Open ebuildy opened 9 years ago

ebuildy commented 9 years ago

By default, Nginx add_header directive does not work if HTTP status code is 40x or 50x. To make it work regardless status code, you must add always at the end.

ralph-tice commented 7 years ago

@monsur does this need any help to get over the finish line?

monsur commented 7 years ago

Thanks Ralph. Does the implementation here look reasonable (or does it need "always" as well)?

ralph-tice commented 7 years ago

The additional verbs and "always" are good in #116, but it needs the regex approach instead of using "||"

yoldar commented 5 years ago

2019 now and I spend 2 days solving issue with 401 error not getting 'access-control-allow-origin'. Please add "always".