Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refused to load the script #12

Open
Musscas opened this issue Jul 16, 2020 · 0 comments
Open

Refused to load the script #12

Musscas opened this issue Jul 16, 2020 · 0 comments

Comments

@Musscas
Copy link

Musscas commented Jul 16, 2020

Hi.
I encountered a problem with the plugin.
It works in one browser, but not in others.
It works in Explorer, but it doesn't work in Chrome, for example.
There is a maps tab, and two buttons Start Over and Print
Everything is normal in Explorer, both the map and device markers
Here is the browser's debug.

VM977 gpsmap.php:1 Refused to load the script 'https://maps.googleapis.com/maps/api/js?key=MY_GOOGLE_API_KEY_HERE&libraries=geometry' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

VM977 gpsmap.php:177 Uncaught ReferenceError: google is not defined
at VM977 gpsmap.php:177
VM1006:21 Uncaught ReferenceError: google is not defined
at :21:12
at DOMEval (jquery.js?23c7c5d2d1317508e807a6c7f777d6ed:129)
at domManip (jquery.js?23c7c5d2d1317508e807a6c7f777d6ed:6128)
at jQuery.fn.init.replaceWith (jquery.js?23c7c5d2d1317508e807a6c7f777d6ed:6367)
at Object. (layout.js?0f7fc9563839b3c7e67bbf30cebe6786:1751)
at fire (jquery.js?23c7c5d2d1317508e807a6c7f777d6ed:3496)
at Object.fireWith [as resolveWith] (jquery.js?23c7c5d2d1317508e807a6c7f777d6ed:3626)
at done (jquery.js?23c7c5d2d1317508e807a6c7f777d6ed:9786)
at XMLHttpRequest. (jquery.js?23c7c5d2d1317508e807a6c7f777d6ed:10047)

I click on gpsmap. php:177 and it opens this information

url : 'http://URL/cacti//plugins/gpsmap/images/icons/Black.png',
size : new google.maps.Size(12, 20),`red cross at this line
If you need additional information, I can provide it.

Cacti 1.2.13
Gpsmap 2.1
New installation
1 host
the XML folder is configured and contains data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant