I have a website lets call it example.com , it is hosted at an external hosting provider. On the site I have a page http://example.com/msg.php that needs to reference a JavaScript from an intranet site lets say running on example_intranet.com, so I have a script reference like..
<script src="http://example_intranet.com/js/messaging.js" type="text/javascipt">
I'm aware of cross-domain security issues and have setup the necessary CORS on the example.com site and pages.
When you visit http://example.com/msg.php from OUTSIDE the company network (example_intranet.com) everything works as expected, but when you visit the same page from within (INSIDE) the network the page doesn't appear to resolve the javascript include ..
any suggestions on how to fix this?That is to be able to have the reference javascirpt work from inside the network.