Merge pull request #1975 from minrk/cors-auth-header

add Authorization to allowed CORS headers
Min RK 9 years ago committed by GitHub
commit 5f0d05c5fe

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

Loading…
Cancel
Save