annotate config/initializers/permissions_policy.rb @ 235:4222343d9433 legit-client

No access to protected user
author nanaya <me@nanaya.net>
date Fri, 14 Jul 2023 22:43:40 +0900
parents 2335107f35d0
children 89f6c0016bab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
214
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
1 # Define an application-wide HTTP permissions policy. For further
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
2 # information see https://developers.google.com/web/updates/2018/06/feature-policy
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
3 #
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
4 # Rails.application.config.permissions_policy do |f|
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
5 # f.camera :none
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
6 # f.gyroscope :none
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
7 # f.microphone :none
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
8 # f.usb :none
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
9 # f.fullscreen :self
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
10 # f.payment :self, "https://secure.example.com"
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents:
diff changeset
11 # end