Google Maps Not Loading Images


#1

Hey all… I am working with Google Maps, I have my API key, but when the app runs none of the images show up and I get the error: "Refused to load the image ‘’ because it violates the following Content Security Policy directive: “img-src ‘self’ data:”. So none of the maps show up. Does anyone know how to fix this or where to apply a fix within the AppStudio application?


#2

I see this is a browser issue, and one of the other Sample Projects in App Studios using Google Location works fine because evidently all of the source images come from one source. Looking for a fix.


#3

Fixed. LOL. I just love answering my own threads. This is a Browser setting that prevents scripting attacks. To have your AppStudio app ignore this and allow the few different sources of images that come from a few URLs, set the “contentSecurityPolicy” attribute, found “Project Properties and Global Code” (the 4th one down from the top) to “none.”


#4

Good job! :+1:

Thanks for following up.