Allow requests to POST in OPTIONS requests

Commit 65eb248209 introduced a bug by not allowing the POST method in OPTIONS requests (which is wrong since several parts of the API accept POST requests, for example creating a new kernel).
chultquist 10 years ago
parent 4a161fea12
commit 144807bc3c

@ -390,7 +390,7 @@ class APIHandler(IPythonHandler):
def options(self, *args, **kwargs):
self.set_header('Access-Control-Allow-Headers', 'accept, content-type')
self.set_header('Access-Control-Allow-Methods',
'GET, PUT, PATCH, DELETE, OPTIONS')
'GET, PUT, POST, PATCH, DELETE, OPTIONS')
self.finish()

Loading…
Cancel
Save