haskell-servant / servant-js

Automatically derive javascript functions to query servant webservices.
Other
23 stars 21 forks source link

Support withCredentials in generated vanilla JS. #3

Open andorp opened 7 years ago

andorp commented 7 years ago

Including the withCredentials option should be useful for the Vanilla JS backend too, as it is included in the Axios backend.

  ...
  xhr.setRequestHeader("Accept","application/json");
  xhr.withCredentials = true;
  ...
phadej commented 7 years ago

Will accept the PR.