0
0
Fork 0

Set Content-Security-Policy rules through RoR's config (#8957)

* Set CSP rules in RoR's configuration

* Override CSP setting in the embed controller to allow frames
This commit is contained in:
ThibG 2018-10-11 20:35:46 +02:00 committed by Eugen Rochko
parent 9ece873d62
commit 2d27c11061
3 changed files with 18 additions and 11 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