Skip to content

Commit

Permalink
allow admin api's to post json through Cors
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayk committed Oct 1, 2015
1 parent ed1a683 commit 174913e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kong.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ nginx: |
ngx.header["Access-Control-Allow-Origin"] = "*"
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"
ngx.exit(204)
end
local lapis = require "lapis"
Expand Down

0 comments on commit 174913e

Please sign in to comment.