2๐
โ
You are running into the same origin policy sandbox. Since your server is www.abc.com and you are accessing abc.com โ the origin is not the same, which is why the script is not executing.
You have a few options:
- Make sure the URL matches exactly โ to avoid the same origin policy sandbox.
- Use jsonp in your javascript libary.
๐คBurhan Khalid
Source:stackexchange.com