Skip to content

Commit

Permalink
Merge pull request Kong#2452 from Mashape/fix/admin-api-acac-header
Browse files Browse the repository at this point in the history
fix(admin) CORS ACAC header cannot receive false
  • Loading branch information
thibaultcha authored Apr 25, 2017
2 parents ca1c6c5 + 3424536 commit 4ac3156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/templates/nginx_kong.lua
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ server {
default_type application/json;
content_by_lua_block {
ngx.header['Access-Control-Allow-Origin'] = '*'
ngx.header['Access-Control-Allow-Credentials'] = 'false'
if ngx.req.get_method() == 'OPTIONS' then
ngx.header['Access-Control-Allow-Methods'] = 'GET,HEAD,PUT,PATCH,POST,DELETE'
ngx.header['Access-Control-Allow-Headers'] = 'Content-Type'
Expand Down

0 comments on commit 4ac3156

Please sign in to comment.