Closed wejendorp closed 10 years ago
Makes the superagent handles extendible via plugins. I use this for forcing superagent.Request.prototype._withCredentials = true in order to make the models work cross origin.
superagent.Request.prototype._withCredentials = true
+1 i do this in a different component, but it's hackish.
How have you done that?
i monkey patched superagent directly.
lib/model
patch(require('superagent')); module.exports = require('model');
Makes the superagent handles extendible via plugins. I use this for forcing
superagent.Request.prototype._withCredentials = true
in order to make the models work cross origin.