From: Tom Hughes Date: Wed, 9 Mar 2022 22:43:02 +0000 (+0000) Subject: Mark redirects which need to be open with allow_other_host X-Git-Tag: live~2057 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/385272bdae07c702d245b20c172bcb998259c8c6 Mark redirects which need to be open with allow_other_host --- diff --git a/app/controllers/export_controller.rb b/app/controllers/export_controller.rb index d901dccc9..94851de96 100644 --- a/app/controllers/export_controller.rb +++ b/app/controllers/export_controller.rb @@ -21,7 +21,7 @@ class ExportController < ApplicationController format = params[:mapnik_format] scale = params[:mapnik_scale] - redirect_to "https://render.openstreetmap.org/cgi-bin/export?bbox=#{bbox}&scale=#{scale}&format=#{format}" + redirect_to "https://render.openstreetmap.org/cgi-bin/export?bbox=#{bbox}&scale=#{scale}&format=#{format}", :allow_other_host => true end end diff --git a/app/controllers/oauth_controller.rb b/app/controllers/oauth_controller.rb index 7ab7f6835..cd7e48277 100644 --- a/app/controllers/oauth_controller.rb +++ b/app/controllers/oauth_controller.rb @@ -66,7 +66,7 @@ class OauthController < ApplicationController @redirect_url.query += "&oauth_verifier=#{@token.verifier}" unless @token.oauth10? - redirect_to @redirect_url.to_s + redirect_to @redirect_url.to_s, :allow_other_host => true end else @token.invalidate!