Fix Content-Security-Policy when using sso-redirect (#32241)
parent
55b5364534
commit
81cd489208
|
@ -13,7 +13,7 @@ module WebAppControllerConcern
|
||||||
policy = ContentSecurityPolicy.new
|
policy = ContentSecurityPolicy.new
|
||||||
|
|
||||||
if policy.sso_host.present?
|
if policy.sso_host.present?
|
||||||
p.form_action policy.sso_host
|
p.form_action policy.sso_host, -> { "https://#{request.host}/auth/auth/" }
|
||||||
else
|
else
|
||||||
p.form_action :none
|
p.form_action :none
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue