Completely remove form-action restrictions for OAuth callbacks

The CSP3 draft only allows a * rule match network schemes and
mobile devices often use callbacks to custom URL schemes.
This commit is contained in:
Tom Hughes 2018-05-23 12:09:21 +01:00
parent 4634c6bc42
commit 5deba2782a

View file

@ -38,7 +38,7 @@ class OauthController < ApplicationController
protected
def oauth1_authorize
append_content_security_policy_directives(:form_action => %w[*])
override_content_security_policy_directives(:form_action => false)
if @token.invalidated?
@message = t "oauth.authorize_failure.invalid"