comparison config/initializers/permissions_policy.rb @ 254:89f6c0016bab default tip

Update to latest rails
author nanaya <me@nanaya.net>
date Tue, 03 Sep 2024 19:21:25 +0900
parents 2335107f35d0
children
comparison
equal deleted inserted replaced
253:d726e8b92dd1 254:89f6c0016bab
1 # Be sure to restart your server when you modify this file.
2
1 # Define an application-wide HTTP permissions policy. For further 3 # Define an application-wide HTTP permissions policy. For further
2 # information see https://developers.google.com/web/updates/2018/06/feature-policy 4 # information see: https://developers.google.com/web/updates/2018/06/feature-policy
3 # 5
4 # Rails.application.config.permissions_policy do |f| 6 # Rails.application.config.permissions_policy do |policy|
5 # f.camera :none 7 # policy.camera :none
6 # f.gyroscope :none 8 # policy.gyroscope :none
7 # f.microphone :none 9 # policy.microphone :none
8 # f.usb :none 10 # policy.usb :none
9 # f.fullscreen :self 11 # policy.fullscreen :self
10 # f.payment :self, "https://secure.example.com" 12 # policy.payment :self, "https://secure.example.com"
11 # end 13 # end