proexpressjs icon indicating copy to clipboard operation
proexpressjs copied to clipboard

Chapter 3 jsonp

Open christian4423 opened this issue 10 years ago • 0 comments

I was working on the example in chapter 3. I noticed that in your figures you get the response:

/**/ typeof updateView === 'function' && updateView({ "name": "Name", "publisher": "foo, "keywords": "foo bar" });

I was pulling my hair out trying to get that to show up on my DOM. Then I realized that my browser(Windows 10 edge) is downloading a file names jsonp.js with the above response written in it. (LOL there were 15 by time I found out).

I tried in chrome and then wrote to the DOM like in your figures.

I am still reading the book and working my way through it but could this cause an issue if I or a potential user is using the edge browser and using jsonp?

christian4423 avatar Jan 13 '16 01:01 christian4423