From 385272bdae07c702d245b20c172bcb998259c8c6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 9 Mar 2022 22:43:02 +0000 Subject: [PATCH] Mark redirects which need to be open with allow_other_host --- app/controllers/export_controller.rb | 2 +- app/controllers/oauth_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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! -- 2.39.5