diff options
author | Starfall <us@starfall.systems> | 2020-08-12 10:08:13 -0500 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2020-08-12 10:08:13 -0500 |
commit | 7f4995774f3a4aaa5440d79faa827ef2bf4064ce (patch) | |
tree | 08fec9058e6bbba4918db9194dd9548ebc5b0b66 /app/controllers | |
parent | 29da0014419d0403ecf78f443e74ad6e2246627f (diff) | |
parent | 660188c9008761ae38d0e82dea841f7d90e199f9 (diff) |
Merge branch 'glitch' into main
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/media_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/media_controller.rb b/app/controllers/media_controller.rb index ce015dd1b..772fc42cb 100644 --- a/app/controllers/media_controller.rb +++ b/app/controllers/media_controller.rb @@ -11,6 +11,7 @@ class MediaController < ApplicationController before_action :verify_permitted_status! before_action :check_playable, only: :player before_action :allow_iframing, only: :player + before_action :set_pack, only: :player content_security_policy only: :player do |p| p.frame_ancestors(false) @@ -43,4 +44,8 @@ class MediaController < ApplicationController def allow_iframing response.headers['X-Frame-Options'] = 'ALLOWALL' end + + def set_pack + use_pack 'public' + end end |