mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-09 03:50:45 +08:00
Merge pull request #1325 from chultquist/master
Fix handling of preflight requests
This commit is contained in:
commit
2d0b8a6a25
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user