Fix OAuth flow being broken by recent CSP change (#20958)

local
Claire 2 years ago committed by GitHub
parent 231e3ec552
commit 4ae97a2e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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

Loading…
Cancel
Save