Closed solisoft closed 3 years ago
Thank you for this contribution! This looks straightforward. I may re-tool this a bit.
Related #791
Infinite Scroll v4 has been released. Infinite Scroll v4 adds a new option, fetchOptions
, which allows you to set headers and other fetch options.
fetchOptions: {
mode: 'cors',
cache: 'no-cache',
credentials: 'same-origin',
headers: {
'X-Session-Id': '33vscths658h7996d324rqft1s',
},
},
Thank you for your original contribution. While I did not merge it in, your effort did help me decide to support the feature.
This PR allow a user to set extra headers on each requests using the headers options
Here a usage