Skip to content

Commit

Permalink
Remove redundant Access-Control-Allow-Origin in cors.conf ref
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkinsspatial committed Oct 1, 2019
1 parent 6374ba9 commit 780355f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ if ($request_method = 'OPTIONS') {

if ($request_method = 'POST') {
set_by_lua_block $dummy {
ngx.header['Access-Control-Allow-Origin'] = '*';
ngx.header['Access-Control-Allow-Methods'] = 'GET, POST, PATCH, DELETE, OPTIONS';
ngx.header['Access-Control-Allow-Credentials'] = 'true';
return true
}
}
}

0 comments on commit 780355f

Please sign in to comment.