Failed to load spot.im js in ionic

I am trying to load spot.im comment section in ionic v1 app using below script


<script async src="https://recirculation.spot.im/spot/<my-spot-id>"></script><div data-spotim-module="recirculation" data-spot-id="<my-spot-id>"></div><script async data-spotim-module="spotim-launcher" src="https://launcher.spot.im/spot/<my-spot-id>" data-post-id="<my-post-id>"></script>

but not working in ionic but i tried in cordova that is working fine. Might some issue with angularJS.

I am getting error in ionic http://prntscr.com/g9mouw

Thanks.

Probably some whitelist or permission thing. Check what you can do there to change it. Compare the config.xml of your Cordova projects with the Ionic project`s one.

1 Like