X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/420a7289a0b08eee091f6650c2e83166df3fbe69..5f59845575ed313688eca669fd73f4f6a5993c23:/app/controllers/site_controller.rb diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 2fa91256e..5833a1e04 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -70,6 +70,7 @@ class SiteController < ApplicationController if %w[potlatch potlatch2].include?(editor) append_content_security_policy_directives( + :connect_src => %w[*], :object_src => %w[*], :plugin_types => %w[application/x-shockwave-flash], :script_src => %w['unsafe-inline'] @@ -103,9 +104,7 @@ class SiteController < ApplicationController @locale = params[:copyright_locale] || I18n.locale end - def welcome - require_user - end + def welcome; end def help; end