##// END OF EJS Templates
only set allow_origin_pat if defined...
MinRK -
Show More
@@ -678,7 +678,8 b' class NotebookApp(BaseIPythonApplication):'
678 def init_webapp(self):
678 def init_webapp(self):
679 """initialize tornado webapp and httpserver"""
679 """initialize tornado webapp and httpserver"""
680 self.webapp_settings['allow_origin'] = self.allow_origin
680 self.webapp_settings['allow_origin'] = self.allow_origin
681 self.webapp_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat)
681 if self.allow_origin_pat:
682 self.webapp_settings['allow_origin_pat'] = re.compile(self.allow_origin_pat)
682 self.webapp_settings['allow_credentials'] = self.allow_credentials
683 self.webapp_settings['allow_credentials'] = self.allow_credentials
683
684
684 self.web_app = NotebookWebApplication(
685 self.web_app = NotebookWebApplication(
General Comments 0
You need to be logged in to leave comments. Login now