Skip to content

Refused to load the script #12

Description

@Musscas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions