projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd0d23
)
Add frame-src to allow http://127.0.0.1:8111
author
Tom Hughes
<tom@compton.nu>
Tue, 15 May 2018 11:43:37 +0000
(12:43 +0100)
committer
Tom Hughes
<tom@compton.nu>
Tue, 15 May 2018 11:43:37 +0000
(12:43 +0100)
app/controllers/application_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index f92bd8cdff7874d4eeb136d413ea9e5b976310f9..f07d548608fc8d88484a0879a77ccf5a90e810ef 100644
(file)
--- a/
app/controllers/application_controller.rb
+++ b/
app/controllers/application_controller.rb
@@
-410,6
+410,7
@@
class ApplicationController < ActionController::Base
def map_layout
append_content_security_policy_directives(
:child_src => %w[http://127.0.0.1:8111],
+ :frame_src => %w[http://127.0.0.1:8111],
:connect_src => %w[nominatim.openstreetmap.org overpass-api.de router.project-osrm.org],
:form_action => %w[render.openstreetmap.org],
:script_src => %w[graphhopper.com open.mapquestapi.com],