Merge pull request #17 from phahulin/master

Comment out adding Access-Control-Allow- headers
This commit is contained in:
phahulin 2017-12-14 23:53:08 +03:00 committed by GitHub
commit 003c274e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ server {
proxy_set_header Host localhost:{{ PROXY_PORT }};
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Content-Type application/json;
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";
#add_header Access-Control-Allow-Origin "*";
#add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";
if ($request_method = 'OPTIONS') {
add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";