diff --git a/config.local.js.SAMPLE b/config.local.js.SAMPLE index 6eea66258..f8c8d6e77 100644 --- a/config.local.js.SAMPLE +++ b/config.local.js.SAMPLE @@ -237,7 +237,9 @@ export default { }, google: { // https://developers.google.com/maps/documentation/embed/guide#api_key - maps_key: "INSERT YOUR VALUE" + maps_key: "INSERT YOUR VALUE", + // If your servers are in EU, google maps will redirect to /consent/ page and the plugins won't work. The option below ignores the redirect. + // follow_http_redirect: true }, /* diff --git a/plugins/domains/google.com/google.maps.js b/plugins/domains/google.com/google.maps.js index c133600ee..30a2ab6c5 100644 --- a/plugins/domains/google.com/google.maps.js +++ b/plugins/domains/google.com/google.maps.js @@ -149,6 +149,8 @@ export default { // responseStatusCode: 415, // No error, fall back to generic parsers instead message: "Google requires your own key for Maps Embeds API. Get one and add it to the provider options." }); + } else if (options.getProviderOptions('google.follow_http_redirect', false)) { + options.followHTTPRedirect = true; } var gmap = {};