Skip to content

Commit

Permalink
Surround script hash in single quotes (#1735)
Browse files Browse the repository at this point in the history
* add disclaimer about changing the script

* add hash for obsolete browser script

* add explicit domain img-src

* add single quotes

* add quotes to `data:`

* change order and remove single quotes

* lint, remove extra slash, and make hash an array

* add links to S3

* surround script has in single quotes
  • Loading branch information
seve authored Aug 12, 2020
1 parent 518768e commit 53a268f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/eb/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def _before_adding_routes(app, app_config):
server_config = app_config.server_config
# This hash should be in sync with the script within
# `client/configuration/webpack/obsoleteHTMLTemplate.html`
obsolete_browser_script_hash = ['SHA25-0028D52E332C015C3ED9929926F4000BB4020B8CB85C1F5769D6AA3BA711F58E']
obsolete_browser_script_hash = ["'SHA25-0028D52E332C015C3ED9929926F4000BB4020B8CB85C1F5769D6AA3BA711F58E'"]
csp = {
"default-src": ["'self'"],
"connect-src": ["'self'"],
Expand Down

0 comments on commit 53a268f

Please sign in to comment.