component / model

Minimalistic extensible data models
122 stars 40 forks source link

support CORS with credentials #64

Closed bodokaiser closed 10 years ago

bodokaiser commented 10 years ago

I want to access an CORS API which takes authentication per cookies.

To send cookies we need to call .withCredentials() on the superagent.Request instance from Model.get. Unfortunately there is no good way to plug in to this.

What would the best way be to workaround/fix this?

Bo