Closed leonnleite closed 3 years ago
Infinite Scroll v4 has been released. Infinite Scroll v4 adds a new option, fetchOptions
, which allows you to set method, headers, CORS mode, and other options for the fetch request
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.
Add method option and param option
params could be:
the
XMLHttpRequest
replaced tofetch