Kemal::Shield::CrossOriginOpenerPolicy
Inherits Kemal::Shield::Handler / Kemal::Handler / Kemal::HandlerInterface / HTTP::Handler / Reference / Object
Kemal::Shield::CrossOriginOpenerPolicy is a handler that sets the
Cross-Origin-Opener-Policy HTTP header.
Default value is "same-origin".
A custom Cross-Origin-Opener-Policy policy can be set by setting
Kemal::Shield.config.coop
Valid policies
"same-origin"
"same-origin-allow-popups"
"unsafe-none"
Constructors
new(policy : String = "same-origin")
SourceInstance methods
call(context)
Source