eagler (2) [Avatar] Offline
#1
In ch1, following listing 1.1, the response from flickr is currently different from that listed. I see

XMLHttpRequest cannot load http://www.flickr.com/photos/nypl/. Origin http://example.com is not allowed by Access-Control-Allow-Origin.

PS is the source available somewhere as a zip download? thanks
monsur.hossain (22) [Avatar] Offline
#2
Re: Ch 1 flickr response is different
Thanks for the feedback. It is ok for the error message to differ slightly from whats in the book. I'll make a note of this in the book. BTW, are you hosting the file on your own website, or opening it up from your computer?

I will also ask about getting the source hosted online. Thanks!
monsur.hossain (22) [Avatar] Offline
#3
Re: Ch 1 flickr response is different
I've put the sample code up on GitHub here: https://github.com/monsur/CORSinAction
eagler (2) [Avatar] Offline
#4
Re: Ch 1 flickr response is different
on my own web site.

thanks
monsur.hossain (22) [Avatar] Offline
#5
Re: Ch 1 flickr response is different
Yup, if you host the sample on your own website, the error message will be different. I've updated chapter 1 with a note on this, the MEAP should be updated soon.