server { add_header 'access-control-allow-origin' '*'; add_header 'access-control-allow-credentials' 'true'; add_header 'access-control-allow-headers' 'authorization,content-type,accept,origin,user-agent,dnt,cache-control,x-mx-reqtoken'; add_header 'access-control-allow-methods' 'get, post, options, put, delete'; add_header ps 1; location / { }}
参考:
http://stackoverflow.com/questions/18450310/nginx-add-header-not-working