Helmet::FrameGuardHandler::Origin
Inherits Enum / Comparable / Value / Object
The Origin enum is used as an argument in the FrameGuardHandler
constructor. You use it to specify the SAMEORIGIN or DENY headers
values.
sameorigin = Helmet::FrameGuardHandler::Origin::Same
handler = Helmet::FrameGuardHandler.new allow_from: sameorigin
Constants
Same = 0_u8
Corresponds to the SAMEORIGIN header value.
Nowhere = 1_u8
Corresponds to the DENY header value.
Instance methods
to_s
Convert this Origin to a string. Origin::Same becomes "SAMEORIGIN"
and Origin::Nowhere becomes "DENY".