Skip to content

Commit

Permalink
fix: allow unsafe-inline CSP
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Feb 4, 2025
1 parent a10db5d commit c526579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ai/backend/web/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def reject_access_for_unsafe_file_policy(request: web.Request) -> None:

def add_self_content_security_policy(response: web.StreamResponse) -> web.StreamResponse:
response.headers["Content-Security-Policy"] = (
"default-src 'self'; frame-ancestors 'none'; form-action 'self';"
"default-src 'self'; style-src 'self' 'unsafe-inline'; frame-ancestors 'none'; form-action 'self';"
)
return response

Expand Down

0 comments on commit c526579

Please sign in to comment.