Update page-load.js - Adding some request options#822
Closed
DrJest wants to merge 3 commits intometafizzy:masterfrom
DrJest:master
Closed
Update page-load.js - Adding some request options#822DrJest wants to merge 3 commits intometafizzy:masterfrom DrJest:master
DrJest wants to merge 3 commits intometafizzy:masterfrom
DrJest:master
Conversation
Adding a request_options option to change request behaviour, allowing to add request headers, change request method and adding progress / abort callbacks
Member
|
Thanks for opening this PR. I could see how this kind of feature would be useful. |
|
Is the maintainer dead ? |
Member
|
Infinite Scroll v4 has been released. Infinite Scroll v4 adds a new option, 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added an option to change request behaviour, allowing to add custom request headers, change request method and progress/abort callbacks
Had to change this to deal with Wordpress's admin-ajax which only accepts POST requests, maybe someone else could find it useful