Cross Domain Solution


/ Published in: JavaScript
Save to your folder(s)

Cross domain issues occur when trying to read files such as .xml files of one domain in an other domain (two different websites, ie different IP:Port)


Copy this code and paste it in your HTML
  1. 1. Create javascript file on the domain you want to address
  2. 2. Add methods to this script that perform the desired functionality (for example reading an xml file or otherwise) and return the results.
  3. 3. Include this javascript file with script tags in the HTML file on the other domain.
  4. 4. Add the necessary calls to the Javascript methods in the HTML

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.