id summary reporter owner description type status priority milestone component version resolution keywords cc uname nginx_version 125 Allow add_header to affect 201 responses (and possibly any 2xx code). Nick Grimshaw somebody "[http://wiki.nginx.org/HttpHeadersModule#add_header The documentation] says: add_header Adds headers to the HTTP response when the response code is equal to 200, 204, 301, 302 or 304. I'm trying to add `Access-Control-Allow-Origin` (and related) headers for cross-domain purposes, and I'm unable to use `add_header` to add it to `201` responses, which is making cross-domain resource-creation awkward. I'd like it if `add_header` could be modified to support at least `201` responses, and preferably any success response (i.e. `2xx`)" enhancement closed minor nginx-module 1.1.x fixed Linux *** 2.6.35.13 #6 SMP Tue Sep 20 11:59:28 BST 2011 x86_64 x86_64 x86_64 GNU/Linux "nginx: nginx version: nginx/1.1.0 nginx: built by gcc 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4) nginx: TLS SNI support enabled nginx: configure arguments: --prefix=/usr --with-http_ssl_module --add-module=/usr/local/rvm/gems/ree-1.8.7-2011.03@global/gems/passenger-3.0.7/ext/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx.lock --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/lib/nginx/body --with-http_ssl_module --http-proxy-temp-path=/var/lib/nginx/proxy --with-http_stub_status_module --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --sbin-path=/usr/sbin"