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:56:05 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-17 21:56:05 +0100
commit367db8222f651ce439ebcb9c0d1b50483972173f (patch)
tree5610adfa97edb76e6b6279c2e0457ce882bab6ba /app/controllers/oauth
parent381137c94e6cf341117adddc673cfac82760c710 (diff)
parent4ae97a2e4c4bea850c95a523e84e0424e7c18ffd (diff)
Merge branch 'main' into glitch-soc/merge-upstream
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 279b68016..d6e7d0800 100644
--- a/app/controllers/oauth/authorizations_controller.rb
+++ b/app/controllers/oauth/authorizations_controller.rb
@@ -8,6 +8,10 @@ class Oauth::AuthorizationsController < Doorkeeper::AuthorizationsController
   before_action :set_pack
   before_action :set_cache_headers
 
+  content_security_policy do |p|
+    p.form_action(false)
+  end
+
   include Localized
 
   private