annotate config/initializers/permissions_policy.rb @ 263:2fc76c51e184 default tip

Remove the RT_ env prefix
author nanaya <me@nanaya.net>
date Mon, 16 Dec 2024 01:41:44 +0900
parents 89f6c0016bab
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