Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config.local.js.SAMPLE
Original file line number Diff line number Diff line change
Expand Up @@ -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
},

/*
Expand Down
2 changes: 2 additions & 0 deletions plugins/domains/google.com/google.maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -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. <a href='https://developers.google.com/maps/documentation/embed/get-api-key' target='_blank'>Get one</a> and add it to the provider options."
});
} else if (options.getProviderOptions('google.follow_http_redirect', false)) {
options.followHTTPRedirect = true;
}

var gmap = {};
Expand Down