proexpressjs
proexpressjs copied to clipboard
Chapter 3 jsonp
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?