Skip to content

Commit

Permalink
Fix OAuth flow being broken by recent CSP change (mastodon#20958)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored Nov 17, 2022
1 parent 231e3ec commit 4ae97a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/oauth/authorizations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4ae97a2

Please sign in to comment.