--
This commit is contained in:
@@ -107,6 +107,7 @@ class Middleware:
|
|||||||
|
|
||||||
response.headers["Server"] = f"nercone.dev ({server_version})"
|
response.headers["Server"] = f"nercone.dev ({server_version})"
|
||||||
response.headers["Onion-Location"] = f"http://{onion_hostname}/"
|
response.headers["Onion-Location"] = f"http://{onion_hostname}/"
|
||||||
|
response.headers["Link"] = "<https://nercone.dev/sitemap.xml>; rel=\"sitemap\", <https://nercone.dev/robots.txt>; rel=\"robots\""
|
||||||
|
|
||||||
if "access-control-allow-origin" not in response.headers:
|
if "access-control-allow-origin" not in response.headers:
|
||||||
response.headers["Access-Control-Allow-Origin"] = "*"
|
response.headers["Access-Control-Allow-Origin"] = "*"
|
||||||
|
|||||||
Reference in New Issue
Block a user