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 authored and Eugen Rochko committed 2018-10-11 20:35:46 +02:00
1 parent 9ece873d62
commit 2d27c11061
3 files changed
+18 -11

No files matched your search

+4
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