I have a google map store locator on my home page inside a div called storepoint-container . This is the code for getting the script for the same
<template id="assets_frontend" name="Google Map " inherit_id="web.assets_frontend">
<xpath expr="//script[last()]" position="after">
<script>(function() {
var a = document.createElement("script");
a.type = "text/javascript";
a.async = !0;
a.src = "https://cdn.storepoint.co/api/v1/js/storepoint.js";
var b = document.getElementsByTagName("script")[0];
b.parentNode.insertBefore(a, b);}());</script>
</xpath>
</template>
While this is working fine on the home page I'm getting a CDN error every time I try to open any other pages within the website. How can I fix this?