mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-23 02:58:07 +01:00
Override CSP setting in the embed controller to allow frames
This commit is contained in:
parent
e7a72439f1
commit
628fca50e2
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,10 @@ class StatusesController < ApplicationController
|
|||
before_action :set_referrer_policy_header, only: [:show]
|
||||
before_action :set_cache_headers
|
||||
|
||||
content_security_policy only: :embed do |p|
|
||||
p.frame_ancestors(false)
|
||||
end
|
||||
|
||||
def show
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
|
|
Loading…
Reference in a new issue