Skip to content

Commit

Permalink
Satisfy the style dictator
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 19, 2024
1 parent f126807 commit ace54be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion thallium-backend/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ async def add_process_time_and_security_headers(
response.headers["X-XSS-Protection"] = "1; mode=block"
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/;"
response.headers["Content-Security-Policy"] = (
"default-src 'self'; script-src https://cdn.jsdelivr.net/; style-src https://cdn.jsdelivr.net/;"
)
response.headers["Referrer-Policy"] = "no-referrer"
response.headers["Permissions-Policy"] = (
"camera=(), display-capture=(), fullscreen=(), geolocation=(), microphone=(), screen-wake-lock=(), web-share=()"
Expand Down

0 comments on commit ace54be

Please sign in to comment.