diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-17 21:31:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-17 21:31:52 +0100 |
commit | 4ae97a2e4c4bea850c95a523e84e0424e7c18ffd (patch) | |
tree | 93ce5009a8acf91520e8c3d6c622ec7882a96ecf | |
parent | 231e3ec5525939971b8b4001d28123119b4eed3a (diff) |
Fix OAuth flow being broken by recent CSP change (#20958)
-rw-r--r-- | app/controllers/oauth/authorizations_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/oauth/authorizations_controller.rb b/app/controllers/oauth/authorizations_controller.rb index 45073c968..5449cfb1a 100644 --- a/app/controllers/oauth/authorizations_controller.rb +++ b/app/controllers/oauth/authorizations_controller.rb @@ -7,6 +7,10 @@ class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController before_action :authenticate_resource_owner! before_action :set_cache_headers + content_security_policy do |p| + p.form_action(false) + end + include Localized private |