diff --git a/slices/main/action.rb b/slices/main/action.rb index 6e7ba02..c405ef2 100644 --- a/slices/main/action.rb +++ b/slices/main/action.rb @@ -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