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:
parent
4634c6bc42
commit
5deba2782a
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue