Configures the HTTP Feature-Policy response header to specify which browser features the current document and its iframes can use.
Example global policy:
Rails.application.config.permissions_policy do |policy| policy.camera :none policy.gyroscope :none policy.microphone :none policy.usb :none policy.fullscreen :self policy.payment :self, "https://secure.example.com" end
Namespace
- MODULE ActionDispatch::PermissionsPolicy::Request
- CLASS ActionDispatch::PermissionsPolicy::Middleware
Methods
- B
- I
- N
Attributes
| [R] | directives |