Files
codeocean/config/initializers/permissions_policy.rb
Sebastian Serth 1e30f18e87 Update Permissions Policy to include latest additions
Further, we remove an outdated comment on the `speaker` directive, that was removed some time ago (and is deprecated).
2024-04-26 13:37:25 +02:00

30 lines
1.1 KiB
Ruby

# frozen_string_literal: true
# Be sure to restart your server when you modify this file.
# Define an application-wide HTTP permissions policy. For further
# information see: https://developers.google.com/web/updates/2018/06/feature-policy
# TODO: Feature-Policy has been renamed to Permissions-Policy. The Permissions-Policy is
# not yet supported by Rails (even though the new name is already used for the method)
Rails.application.config.permissions_policy do |policy|
policy.accelerometer :none
policy.ambient_light_sensor :none
policy.autoplay :none
policy.camera :none
policy.encrypted_media :none
policy.fullscreen :none
policy.geolocation :none
policy.gyroscope :none
policy.hid :none
policy.idle_detection :none
policy.magnetometer :none
policy.microphone :none
policy.midi :none
policy.payment :none
policy.picture_in_picture :none
policy.screen_wake_lock :none
policy.serial :none
policy.usb :none
policy.web_share :none
end