Skip to content

Commit

Permalink
Update Content-Security-Policy and X-Frame-Options in jupyter_noteboo…
Browse files Browse the repository at this point in the history
…k_config.py
  • Loading branch information
xuwenyihust committed Jul 3, 2024
1 parent 97ff796 commit 97739db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/notebook/jupyter_notebook_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

c.NotebookApp.tornado_settings = {
'headers': {
'Content-Security-Policy': "frame-ancestors 'self' http://localhost:5001 http://localhost:3000 http://localhost:5002;",
'X-Frame-Options': 'ALLOW-FROM http://localhost:5001 http://localhost:3000 http://localhost:5002',
'Content-Security-Policy': "frame-ancestors 'self' http://localhost:5001 http://localhost:3000 http://localhost:5002 http://localhost:8888;",
'X-Frame-Options': 'ALLOW-FROM http://localhost:5001 http://localhost:3000 http://localhost:5002 http://localhost:8888',
}
}
c.NotebookApp.allow_origin_pat = 'http://localhost:(3000|5001|5002)' # Allows requests from your React app
c.NotebookApp.allow_origin_pat = 'http://localhost:(3000|5001|5002|8888)' # Allows requests from your React app
c.NotebookApp.allow_credentials = True # Allows cookies to be sent
c.NotebookApp.disable_check_xsrf = True

0 comments on commit 97739db

Please sign in to comment.