Skip to content

Commit

Permalink
add fontawesome cdn to style-src csp directive
Browse files Browse the repository at this point in the history
  • Loading branch information
DrCBeatz committed Dec 11, 2023
1 parent 18206d9 commit 6469e14
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,32 +118,32 @@
CSP_STYLE_SRC = (
"'self'",
"use.fontawesome.com",
"cdnjs.cloudflare.com",
"'unsafe-inline'",
)
)

CSP_SCRIPT_SRC = ("'self'",
)
CSP_SCRIPT_SRC = ("'self'",)

CSP_IMG_SRC = ("'self'",
CSP_IMG_SRC = (
"'self'",
"data:",
"blob:",
)
)

CSP_FONT_SRC = ("'self'",
CSP_FONT_SRC = (
"'self'",
"data:",
)
)

CSP_CONNECT_SRC = ("'self'",)
CSP_OBJECT_SRC = ("'none'", )
CSP_BASE_URI = ("'self'", )
CSP_FRAME_ANCESTORS = ("'self'" )
CSP_FORM_ACTION = (
"'self'",
)
CSP_INCLUDE_NONCE_IN = ('script-src', 'style-src' )
CSP_MANIFEST_SRC = ("'self'", )
CSP_WORKER_SRC = ("'self'", )
CSP_MEDIA_SRC = ("'self'", )
CSP_OBJECT_SRC = ("'none'",)
CSP_BASE_URI = ("'self'",)
CSP_FRAME_ANCESTORS = "'self'"
CSP_FORM_ACTION = ("'self'",)
CSP_INCLUDE_NONCE_IN = ("script-src", "style-src")
CSP_MANIFEST_SRC = ("'self'",)
CSP_WORKER_SRC = ("'self'",)
CSP_MEDIA_SRC = ("'self'",)
CSP_CONNECT_SRC = ("'self'",)
CSP_DEFAULT_SRC = ("'none'",)

Expand Down

0 comments on commit 6469e14

Please sign in to comment.