annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
254
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
1 # Be sure to restart your server when you modify this file.
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
2
214
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
3 # Define an application-wide HTTP permissions policy. For further
254
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
4 # information see: https://developers.google.com/web/updates/2018/06/feature-policy
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
5
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
6 # Rails.application.config.permissions_policy do |policy|
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
7 # policy.camera :none
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
8 # policy.gyroscope :none
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
9 # policy.microphone :none
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
10 # policy.usb :none
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
11 # policy.fullscreen :self
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 214
diff changeset
12 # policy.payment :self, "https://secure.example.com"
214
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
13 # end