Skip to content

Commit

Permalink
Merge pull request #46 from UBC-DSCI/fix-rise-header
Browse files Browse the repository at this point in the history
Fix HTTP headers for RISE and update altair
  • Loading branch information
briank-git committed Aug 27, 2024
2 parents b365854 + f09e9fa commit cc79fd9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/py-dsci-100/jupyter_server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@
## Allow access to hidden files
# See also: ContentsManager.allow_hidden
c.AsyncFileContentsManager.allow_hidden = True

# Fix HTTP headers so RISE can open a frame
c.ServerApp.tornado_settings = {
'headers': {
'Content-Security-Policy': "frame-ancestors 'self'"
}
}
7 changes: 7 additions & 0 deletions docker/r-dsci-100/jupyter_server_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,10 @@
## Allow access to hidden files
# See also: ContentsManager.allow_hidden
c.AsyncFileContentsManager.allow_hidden = True

# Fix HTTP headers so RISE can open a frame
c.ServerApp.tornado_settings = {
'headers': {
'Content-Security-Policy': "frame-ancestors 'self'"
}
}

0 comments on commit cc79fd9

Please sign in to comment.