Override CSP setting in the embed controller to allow frames

lolsob-rspec
Thibaut Girka 2018-08-22 17:37:51 +02:00 committed by ThibG
parent 563a09d81a
commit 9efb4edddd
1 changed files with 4 additions and 0 deletions

View File

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