Model set xhrFields for fetch?

Is it possible to add xhrFields to an Model's fetch request? Do I need to create a custom enyo.Source? I need to add withCredentials to the request. I'm using Enyo 2.3.


  • You should be able to pass any properties you want in the opts hash to fetch and it will get cascaded into the enyo.Ajax request to to the server.
    var m = new enyo.Model({source:"ajax"});
  • Yes that works. I had actually tried that, but it wasn't working. Turns out the issue was with my code not enyo.
Sign In or Register to comment.