X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/827024f7e6c48a11dbe08e569e2cbd852701bd31..3ec67ea2d395f9ae78f806f8e583e10d691861de:/app/controllers/oauth_controller.rb?ds=sidebyside diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index ae6d0983b..96b562b5e 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -38,7 +38,7 @@ class OauthController < ApplicationController protected def oauth1_authorize - append_content_security_policy_directives(:form_action => %w[*]) + override_content_security_policy_directives(:form_action => []) if CSP_ENFORCE || defined?(CSP_REPORT_URL) if @token.invalidated? @message = t "oauth.authorize_failure.invalid"