Do you also have a desire to share your knowledge with others?If so, we'd love to hear from you! Join our team of talented professionals today!
Background For a long time developers pulled their hair out when attempting to get Firefox (Fx) to allow a script from one domain to read a file from another domain via XMLHttpRequest. The two most common solutions I saw and used were: inserting a script which returns JSON (JSONP) using a proxy on one domain to connect to another domain which fetches JSON. IE is less choosey, and on an intranet, one can simply add the foreign site as 'trusted' and simply go get the data. Woot! In June 2009, with the release of Fx 3.5, a small change suddenly made a lot of hacks redundant: have the target server add a simple header to their response, and Fx will happily accept the data. Mozilla.org had implemented the client side … Continue reading