monsur / enable-cors.org

Advocacy for CORS
http://enable-cors.org/
212 stars 99 forks source link

Added 'always' to GET and POST add_header lines #159

Closed hvinayan closed 3 years ago

hvinayan commented 3 years ago

Without 'always' set, for non 2xx/3xx responses, the headers are not being set. If the always parameter is specified the specified field will be added regardless of the response code. Requires version 1.7.5 + ref: https://nginx.org/en/docs/http/ngx_http_headers_module.html