Merge pull request #1325 from chultquist/master

Fix handling of preflight requests
This commit is contained in:
Min RK 2016-04-08 10:51:43 -07:00
commit 2d0b8a6a25

View File

@ -387,7 +387,6 @@ class APIHandler(IPythonHandler):
self.set_header('Content-Type', 'application/json')
return super(APIHandler, self).finish(*args, **kwargs)
@web.authenticated
def options(self, *args, **kwargs):
self.set_header('Access-Control-Allow-Headers', 'accept, content-type')
self.set_header('Access-Control-Allow-Methods',