C2M 2.9 - Issue Calling External Script And Embedding The Google Maps From UI Map
(Doc ID 3062982.1)
Last updated on DECEMBER 10, 2024
Applies to:
Oracle Utilities Customer to Meter Base - Version 2.9.0.1.1 and laterInformation in this document applies to any platform.
Goal
On : 2.9.0.1.1 version, Framework
C2M 2.9 - Issue calling external script and embedding the google maps from UI Map
The customer facing an issue calling external script and embedding the Google Maps from UI Map. This is working in the CCB version, but with the same UI Map – customer aren’t able to get this running in C2M 2.9v. We suspect there are some content security policies that are blocking this from working, but not sure where the configurations need to be done. I have attached the UI Map Schema as a text document for reference.
Below is the log from the Developer tools from the UI map java script.
Refused to load the script 'https://maps.google.com.sa/maps/api/js?v=3&libraries=geometry,places&key=AIzaSyB53rDz-dNuEXZl3su17oaqUbqkjkvWCuw&language=en&callback=myMap' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://static.oracle.com https://guidedlearning.oracle.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
Solution
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Goal |
Solution |
References |