Skip to content

Commit

Permalink
[django] oprava CSP #82
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlukas committed Apr 13, 2020
1 parent ddda2e6 commit c3a8c6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions up/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,3 +201,4 @@
CSP_FRAME_ANCESTORS = (CSP_NONE,)
CSP_FORM_ACTION = (CSP_NONE,)
CSP_BASE_URI = (CSP_NONE,)
CSP_MANIFEST_SRC = (CSP_SELF,) # site.webmanifest
2 changes: 1 addition & 1 deletion up/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ALLOWED_HOSTS = ["*"]

# CSP
CSPURL_LOCALHOST = ("*:3000",)
CSPURL_LOCALHOST = ("http://*:3000",)

CSP_STYLE_SRC = CSP_STYLE_SRC + CSPURL_LOCALHOST
CSP_CONNECT_SRC = CSP_CONNECT_SRC + CSPURL_LOCALHOST + ("ws://*:3000",)
Expand Down

0 comments on commit c3a8c6b

Please sign in to comment.