@@ -193,6 +193,7 @@ def init_settings(self, ipython_app, kernel_manager, contents_manager,
193
193
logout_handler_class = ipython_app .logout_handler_class ,
194
194
password = ipython_app .password ,
195
195
xsrf_cookies = True ,
196
+ disable_check_xsrf = ipython_app .disable_check_xsrf ,
196
197
197
198
# managers
198
199
kernel_manager = kernel_manager ,
@@ -560,6 +561,22 @@ def _token_changed(self, name, old, new):
560
561
"""
561
562
)
562
563
564
+ disable_check_xsrf = Bool (False , config = True ,
565
+ help = """Disable cross-site-request-forgery protection
566
+
567
+ Jupyter notebook 4.3.1 introduces protection from cross-site request forgeries,
568
+ requiring API requests to either:
569
+
570
+ - originate from the (validated with XSRF cookie and token), or
571
+ - authenticate with a token
572
+
573
+ Some anonymous compute resources still desire the ability to run code,
574
+ completely without authentication.
575
+ These services can disable all authentication and security checks,
576
+ with the full knowledge of what that implies.
577
+ """
578
+ )
579
+
563
580
open_browser = Bool (True , config = True ,
564
581
help = """Whether to open in a browser after starting.
565
582
The specific browser used is platform dependent and
0 commit comments