Default main slice headers

This commit is contained in:
2024-08-23 20:44:53 +10:00
parent 5e84f70705
commit 6cabe288fc

View File

@@ -3,5 +3,14 @@
module Main
class Action < Adamantium::Action
before :default_headers
private
def default_headers(_, res)
res.headers["Strict-Transport-Security"] = "max-age=3600"
res.headers["Referrer-Policy"] = "origin"
res.headers["Permissions-Policy"] = "microphone=(), geolocation=()"
end
end
end