Skip to content

Commit

Permalink
Merge pull request #580 from ajayk/master
Browse files Browse the repository at this point in the history
allow admin api's to post json through Cors
  • Loading branch information
thibaultcha committed Oct 3, 2015
2 parents 548858e + 174913e commit ab0bf4d
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 ab0bf4d

Please sign in to comment.