annotate config/initializers/permissions_policy.rb @ 497:3adab940b090

Update js libraries
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:19:46 +0900
parents 92929378413e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
1 # Be sure to restart your server when you modify this file.
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
2
481
88fd5722fcb3 Update defaults
nanaya <me@nanaya.pro>
parents:
diff changeset
3 # Define an application-wide HTTP permissions policy. For further
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
4 # information see: https://developers.google.com/web/updates/2018/06/feature-policy
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
5
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
6 # Rails.application.config.permissions_policy do |policy|
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
7 # policy.camera :none
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
8 # policy.gyroscope :none
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
9 # policy.microphone :none
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
10 # policy.usb :none
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
11 # policy.fullscreen :self
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 481
diff changeset
12 # policy.payment :self, "https://secure.example.com"
481
88fd5722fcb3 Update defaults
nanaya <me@nanaya.pro>
parents:
diff changeset
13 # end