We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cc042e commit 90ece3cCopy full SHA for 90ece3c
1 file changed
virtool/api/headers.py
@@ -7,10 +7,11 @@
7
8
@middleware
9
async def headers_middleware(req, handler):
10
- """Middleware that adds the current version of the API to the response."""
+ """Middleware that appends static headers to the response."""
11
resp = await handler(req)
12
resp.headers["X-Virtool-Version"] = req.app["version"]
13
resp.headers["Server"] = "Virtool"
14
+ resp.headers["X-Content-Type-Options"] = "nosniff"
15
16
return resp
17
0 commit comments