Amareis / another-rest-client

Simple pure TypeScript REST API client that makes your code lesser and more beautiful than without it.
MIT License
174 stars 17 forks source link

Cookie #17

Closed skychik closed 6 years ago

skychik commented 6 years ago

I don't see any way to set withCredentials to true to make request with cookies

skychik commented 6 years ago

I found the way myself :P api.on('request', function (xhr) { xhr.withCredentials = true; });