diff options
author | Thibaut Girka <thib@sitedethib.com> | 2020-08-11 23:15:32 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2020-08-12 00:00:42 +0200 |
commit | 7c20530fb70439710ac1e0c8ad8544409506c93a (patch) | |
tree | bdcb6e1e4be2b22bfa80e558f491e31791fe7107 /app/controllers/media_controller.rb | |
parent | 0376b6b92bb80394341ae648d646a508484aa154 (diff) |
Fix embedded player
(broken because I forgot to adapt it to glitch-soc's theming system)
Diffstat (limited to 'app/controllers/media_controller.rb')
-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 |