OpenID Connect: Disable form-action CSP on authorization page

Some browsers apply this CSP rules even to the redirect response
after the POST requests, blocking the redirect_uri redirect
This commit is contained in:
Jonne Haß 2020-10-20 17:06:23 +02:00
parent 651a271450
commit 7fabd9d17f

View file

@ -120,6 +120,7 @@ module Api
@scopes = endpoint.scopes @scopes = endpoint.scopes
save_request_parameters save_request_parameters
@app = UserApplicationPresenter.new @o_auth_application, @scopes @app = UserApplicationPresenter.new @o_auth_application, @scopes
override_content_security_policy_directives(form_action: %w[])
render :new render :new
end end