Skip to content

Commit

Permalink
Allow UNPKG in CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 19, 2024
1 parent 8af81a6 commit ae3a047
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion thallium-backend/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ 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 'unsafe-inline' https://cdn.jsdelivr.net/;"
"default-src 'self';"
" script-src 'unsafe-inline' https://cdn.jsdelivr.net/ https://unpkg.com/;"
" style-src https://cdn.jsdelivr.net/ https://fonts.googleapis.com/;"
" img-src 'self' data:;"
)
Expand Down

0 comments on commit ae3a047

Please sign in to comment.