forward-port fixes

pull/2005/head
Min RK 9 years ago
parent 0b50201ae4
commit a69494833b

@ -226,7 +226,7 @@ class NotebookWebApplication(web.Application):
logout_handler_class=jupyter_app.logout_handler_class,
password=jupyter_app.password,
xsrf_cookies=True,
disable_check_xsrf=ipython_app.disable_check_xsrf,
disable_check_xsrf=jupyter_app.disable_check_xsrf,
# managers
kernel_manager=kernel_manager,
@ -631,6 +631,7 @@ class NotebookApp(JupyterApp):
since any user can connect to the notebook server via ssh.
"""
)
disable_check_xsrf = Bool(False, config=True,
help="""Disable cross-site-request-forgery protection

@ -3,11 +3,11 @@
from __future__ import print_function
from binascii import hexlify
import os
import time
import requests
from contextlib import contextmanager
import os
import sys
from threading import Thread, Event
import time
from unittest import TestCase
pjoin = os.path.join
@ -17,6 +17,7 @@ try:
except ImportError:
from mock import patch #py2
import requests
from tornado.ioloop import IOLoop
import zmq

Loading…
Cancel
Save