about summary refs log tree commit diff
path: root/app/controllers/oauth
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-17 21:31:52 +0100
committerGitHub <noreply@github.com>2022-11-17 21:31:52 +0100
commit4ae97a2e4c4bea850c95a523e84e0424e7c18ffd (patch)
tree93ce5009a8acf91520e8c3d6c622ec7882a96ecf /app/controllers/oauth
parent231e3ec5525939971b8b4001d28123119b4eed3a (diff)
Fix OAuth flow being broken by recent CSP change (#20958)
Diffstat (limited to 'app/controllers/oauth')
-rw-r--r--app/controllers/oauth/authorizations_controller.rb4
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