Skip to content

Commit 53a268f

Browse files
authored
Surround script hash in single quotes (#1735)
* 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
1 parent 518768e commit 53a268f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/eb/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def _before_adding_routes(app, app_config):
9898
server_config = app_config.server_config
9999
# This hash should be in sync with the script within
100100
# `client/configuration/webpack/obsoleteHTMLTemplate.html`
101-
obsolete_browser_script_hash = ['SHA25-0028D52E332C015C3ED9929926F4000BB4020B8CB85C1F5769D6AA3BA711F58E']
101+
obsolete_browser_script_hash = ["'SHA25-0028D52E332C015C3ED9929926F4000BB4020B8CB85C1F5769D6AA3BA711F58E'"]
102102
csp = {
103103
"default-src": ["'self'"],
104104
"connect-src": ["'self'"],

0 commit comments

Comments
 (0)