This commit is contained in:
2026-04-22 22:42:15 +09:00
parent c5ba95b350
commit 53bf5de7b5
+1
View File
@@ -107,6 +107,7 @@ class Middleware:
response.headers["Server"] = f"nercone.dev ({server_version})"
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:
response.headers["Access-Control-Allow-Origin"] = "*"