Skip to content

Commit

Permalink
frame-src csp self (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders-kiaer authored Jan 22, 2020
1 parent 1ccfcb0 commit 592f2a2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webviz_config/_theme_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def __init__(self, theme_name):
"navigate-to": "'self'",
"base-uri": "'self'",
"form-action": "'self'",
"frame-ancestors": "'none'",
"child-src": "'none'",
"frame-ancestors": "'self'", # [3]
"frame-src": "'self'", # [3]
"object-src": "'self'",
"plugin-types": "application/pdf",
}
Expand All @@ -34,6 +34,9 @@ def __init__(self, theme_name):
[1] unsafe-inline for style still needed by plotly
(https://github.com/plotly/plotly.js/issues/2355)
[2] https://github.com/plotly/dash/issues/630
[3] We use 'self' instead of 'none' due to what looks like a Chromium bug,
where e.g. pdf's included using <embed> is not rendered. Might be
related to https://bugs.chromium.org/p/chromium/issues/detail?id=1002610
"""

self._feature_policy = {
Expand Down

0 comments on commit 592f2a2

Please sign in to comment.