iriscouch/browser-request — Issue #4: better cross domain errors
Author: maxogden
Created: 2012-02-18 01:58:51+00:00
State: open

Given a cross domain request:

request({url: "http://pizza.com/api"}, function(e,r,b) {
console.log(e,r,b)
})

`e` and `b` are null

request({url: "http://pizza.com/api", json:true}, function(e,r,b) {
console.log(e,r,b)
})

`e` is a JSON parse syntax error and `b` is null

Would it be possible to detect and return an error about the single origin policy?