Closed doesnotexist closed 9 years ago
HttpStateSource just uses the fetch API so I think you will be able to do:
var FooStateSource = Marty.createStateSource({
type: 'http',
getFoo: function () {
return this.get({ url: 'http://whatever.com/foos', cors: true })
}
});
It is not clear how one would go about sending a CORS request using the HttpStateSource. Has anyone done this? Perhaps there should be an example of such a thing in the docs.