typicode / fetchival

Easy window.fetch requests
MIT License
522 stars 33 forks source link

Set {credentials: 'include'} by default #16

Closed DaddyWarbucks closed 7 years ago

DaddyWarbucks commented 8 years ago

Fetchival is already handling almost everything I need by default. Handling the headers, status codes, JSONing, etc is great! Would you consider setting {credentials: include'} by default? I understand that I can now use the wrapper as follows const users = fetchival('/users', {credentials: 'include'});, but it would be very convenient if I didn't have to set this with each instantiation.

Great library BTW! I look forward to using it more!