Skip to content

Commit

Permalink
Allow unsafe-inline scripts in CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 19, 2024
1 parent ace54be commit eee32ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thallium-backend/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async def add_process_time_and_security_headers(
response.headers["Strict-Transport-Security"] = "max-age=31536000"
response.headers["X-Content-Type-Options"] = "nosniff"
response.headers["Content-Security-Policy"] = (
"default-src 'self'; script-src https://cdn.jsdelivr.net/; style-src https://cdn.jsdelivr.net/;"
"default-src 'self'; script-src 'unsafe-inline' https://cdn.jsdelivr.net/; style-src https://cdn.jsdelivr.net/;"
)
response.headers["Referrer-Policy"] = "no-referrer"
response.headers["Permissions-Policy"] = (
Expand Down

0 comments on commit eee32ba

Please sign in to comment.