Google maps not working in the cloud

0
Hi all, I am using the Google Maps widget in Mendix. This works fine when I run the app locally (see image below). But when I run my app in the cloud, the widget does not work anymore (see image below). Translation of the error message: Oops, Something went wrong. Google Maps did not load correctly on this page. See the JavaScript console for technical details. Does anybody know how to fix this? Much obliged!
asked
2 answers
0

What does your browser console say? (F12; Browser developer tools).

I believe there's a good chance that you need to provide an API token/key, which can be inserted in the widget configuration.

https://developers.google.com/maps/documentation/javascript/get-api-key

answered
0

Maybe the widget is using a iframe. Please check the settings under the tab Network in your cloudnode: 

 

Prevent embedding your app in an IFrame

Your application can be embedded in another site using an IFrame. To prevent this, you can deny embedding using the setting below. This will set an X-Frame-Options header for each HTTP response from your app. Please note that Chrome will ignore the "Allow from specific domain" option.

answered