Skip to content

Commit 1cdb411

Browse files
authored
Merge pull request #2876 from SamLau95/master
Add x-xsrftoken to Access-Control-Allow-Headers
2 parents 099f83e + 1c2a256 commit 1cdb411

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebook/base/handlers.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ def finish(self, *args, **kwargs):
503503
return super(APIHandler, self).finish(*args, **kwargs)
504504

505505
def options(self, *args, **kwargs):
506-
self.set_header('Access-Control-Allow-Headers', 'accept, content-type, authorization')
506+
self.set_header('Access-Control-Allow-Headers',
507+
'accept, content-type, authorization, x-xsrftoken')
507508
self.set_header('Access-Control-Allow-Methods',
508509
'GET, PUT, POST, PATCH, DELETE, OPTIONS')
509510
self.finish()

0 commit comments

Comments
 (0)