Skip to content Skip to sidebar Skip to footer

$.getJSON() Call From Express Static Html File Doesn't Get Data

I am using the express module as the basis for my node.js server, and set up a static middleware as follows: self.app.use(express.static(__dirname)); Within the root folder I have

Solution 1:

Have had cross domain issues with JSON in the past and got round them by using JSONP. There is a good explanation and tutorial at:

http://json-jsonp-tutorial.craic.com/index.html


Post a Comment for "$.getJSON() Call From Express Static Html File Doesn't Get Data"