Cors With Spring Not Working
I have this well-known issue with Access-Control-Allow-Origin in my Spring application. I use cross-domain request to read data from built in MongoDB database REST interface (for e
Solution 1:
My request to MongoDB looks like this one :
Accept:/ Origin:localhost:8080 Referer:localhost:8080/SpringHighcharts/chartmongo User-Agent:Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17
I also found that mongod has parameter --json which Permits JSONP access via an HTTP interface. Consider the security implications of allowing this activity before enabling this option, but even enabling this option does not change anything i suppose ;/
Post a Comment for "Cors With Spring Not Working"