Skip to content

Commit

Permalink
accept PUT and DELETE cros domain
Browse files Browse the repository at this point in the history
  • Loading branch information
cquest committed Nov 4, 2016
1 parent 44901cb commit 268c270
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def process_response(self, req, resp, resource):
resp.set_header('Access-Control-Allow-Origin', '*')
resp.set_header('Access-Control-Allow-Headers', 'X-Requested-With')
resp.set_header('Access-Control-Allow-Headers', 'Content-Type')

resp.set_header('Access-Control-Allow-Methods','GET, POST, PUT, DELETE, OPTIONS')

class StatsResource(object):
def on_get(self, req, resp):
db = db_connect()
Expand Down

0 comments on commit 268c270

Please sign in to comment.