rails / request.js

MIT License
389 stars 28 forks source link

Allow credentials option to be set #57

Closed t27duck closed 1 year ago

t27duck commented 1 year ago

Closes #55

Right now, the credentials option for the request object is locked to same-origin. omit and include are two additional valid options.

This allows the user to set the value through the options object. If not set, we still default to same-origin.

marcelolx commented 1 year ago

Thank you for working on this @t27duck!