Default main slice headers
This commit is contained in:
@@ -3,5 +3,14 @@
|
|||||||
|
|
||||||
module Main
|
module Main
|
||||||
class Action < Adamantium::Action
|
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
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user