[Answered ]-Django view sending empty reply with proper headers

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:

  1. Make sure the URL matches exactly โ€“ to avoid the same origin policy sandbox.
  2. Use jsonp in your javascript libary.
๐Ÿ‘คBurhan Khalid

Leave a comment