##// END OF EJS Templates
Backport PR #6105: only set allow_origin_pat if defined...
MinRK -
Show More
@@ -631,7 +631,8 b' class NotebookApp(BaseIPythonApplication):'
631 def init_webapp(self):
631 def init_webapp(self):
632 """initialize tornado webapp and httpserver"""
632 """initialize tornado webapp and httpserver"""
633 self.webapp_settings['allow_origin'] = self.allow_origin
633 self.webapp_settings['allow_origin'] = self.allow_origin
634 self.webapp_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat)
634 if self.allow_origin_pat:
635 self.webapp_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat)
635 self.webapp_settings['allow_credentials'] = self.allow_credentials
636 self.webapp_settings['allow_credentials'] = self.allow_credentials
636
637
637 self.web_app = NotebookWebApplication(
638 self.web_app = NotebookWebApplication(
General Comments 0
You need to be logged in to leave comments. Login now