Skip to content

Commit

Permalink
Fix Content-Security-Policy when using sso-redirect (mastodon#32241)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Oct 4, 2024
1 parent 55b5364 commit 81cd489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/web_app_controller_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module WebAppControllerConcern
policy = ContentSecurityPolicy.new

if policy.sso_host.present?
p.form_action policy.sso_host
p.form_action policy.sso_host, -> { "https://#{request.host}/auth/auth/" }
else
p.form_action :none
end
Expand Down

0 comments on commit 81cd489

Please sign in to comment.