chore: remove trailing whitespace from blank lines in source files
This commit is contained in:
parent
7d32529b1e
commit
ea2a24f519
@ -317,6 +317,10 @@ async def add_security_headers(request: Request, call_next):
|
|||||||
if not response.headers.get("X-Robots-Tag"):
|
if not response.headers.get("X-Robots-Tag"):
|
||||||
response.headers["X-Robots-Tag"] = "index, follow"
|
response.headers["X-Robots-Tag"] = "index, follow"
|
||||||
response.headers["X-Content-Type-Options"] = "nosniff"
|
response.headers["X-Content-Type-Options"] = "nosniff"
|
||||||
|
if request.url.path.startswith("/admin"):
|
||||||
|
response.headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0"
|
||||||
|
response.headers["Pragma"] = "no-cache"
|
||||||
|
response.headers["Expires"] = "0"
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user