mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
aurweb.asgi: patch invalid f-string
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
bfffdd4d91
commit
04ab98907a
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ async def add_security_headers(request: Request, call_next: typing.Callable):
|
|||
]
|
||||
csp += f"script-src 'self' 'nonce-{nonce}' " + ' '.join(script_hosts)
|
||||
# It's fine if css is inlined.
|
||||
csp += f"; style-src 'self' 'unsafe-inline'"
|
||||
csp += "; style-src 'self' 'unsafe-inline'"
|
||||
response.headers["Content-Security-Policy"] = csp
|
||||
|
||||
# Add XTCO header.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue