sails.js Getting a POST payload with text/plain content type
I'm developing a sails.js (node.js framework based on express) aplication, which is going great but ]I can't solve this detail... I need to send POST requests cross domain from internet explorer 8 and 9. For that I'm forced to use xDomainRequest object, wich doesn't allow to set a Content type header. So, when the request gets to the server the content type is "text/plain", which doesn't fire the bodyParser express middleware, so my req.body is an empty object and I can't see the payload I'm sending from the client. For this I've tried two things with no luck: First I wanted to set a header to