The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience. (29) [Avatar] Offline
This code does not work in IE 9.
I have refactored your code. This rafactored code works in compliant browsers.

refactored code available at :
benvinegar (68) [Avatar] Offline
Re: Listing 4.8 A function to make cross-origin requests using CORS
Hey Henri,

Thanks a lot for pointing this out. A lot of our code is pre-IE9, and it's obvious we'll need to test that browser more. Also, thanks for placing this code in a gist – huge help.

- Ben