Fix embedded player

(broken because I forgot to adapt it to glitch-soc's theming system)
This commit is contained in:
Thibaut Girka
2020-08-11 23:15:32 +02:00
committed by ThibG
parent 0376b6b92b
commit 7c20530fb7
2 changed files with 13 additions and 1 deletions

View File

@@ -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