comparison config/initializers/permissions_policy.rb @ 495:92929378413e

Update to latest rails
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:18:06 +0900
parents 88fd5722fcb3
children
comparison
equal deleted inserted replaced
494:e508d3226214 495:92929378413e
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