Allow to be iframed
This commit is contained in:
@@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
|
||||
protect_from_forgery with: :null_session
|
||||
after_action :set_csrf_cookie
|
||||
|
||||
after_filter :allow_iframe
|
||||
after_action :allow_iframe
|
||||
|
||||
layout :false
|
||||
|
||||
|
||||
@@ -39,6 +39,10 @@ module Neeto
|
||||
end
|
||||
end
|
||||
|
||||
config.action_dispatch.default_headers = {
|
||||
'X-Frame-Options' => 'ALLOWALL'
|
||||
}
|
||||
|
||||
SecureHeaders::Configuration.default do |config|
|
||||
config.csp = {
|
||||
# "meta" values. these will shape the header, but the values are not included in the header.
|
||||
@@ -52,7 +56,7 @@ module Neeto
|
||||
connect_src: ["*"],
|
||||
font_src: %w(* 'self'),
|
||||
form_action: %w('self'),
|
||||
frame_ancestors: ["*"],
|
||||
frame_ancestors: ["*", "*.standardnotes.org"],
|
||||
img_src: %w('self' * data:),
|
||||
manifest_src: %w('self'),
|
||||
media_src: %w('self'),
|
||||
|
||||
Reference in New Issue
Block a user