Skip to content

Conversation

@susnux
Copy link
Contributor

@susnux susnux commented Oct 17, 2023

Summary

Our utility to add X-Requested-With headers on API calls intercepts calls to window.fetch, so we must ensure we allow all parameters that the default browser provided window.fetch allows.
In this case make sure to allow all stringifyable objects.

(tests are already included, see failing cypress tests for custom user background on master 😉 )

Checklist

@susnux susnux added bug 3. to review Waiting for reviews regression labels Oct 17, 2023
@susnux susnux requested review from a team, julien-nc, juliusknorr, nfebe, skjnldsv and sorbaugh and removed request for a team October 17, 2023 14:18
@susnux
Copy link
Contributor Author

susnux commented Oct 17, 2023

/compile amend

@juliusknorr
Copy link
Member

Duplicate of #40944 but yours seems much nicer :)

@nextcloud-command nextcloud-command force-pushed the fix/xhr-request-regression branch from bcfc1bc to 9f74f6a Compare October 17, 2023 15:30
Our utility to add `X-Requested-With` headers on API calls intercepts
calls to `window.fetch`, so we must ensure we allow all parameters that the default
browser provided `window.fetch` allows.
In this case make sure to allow all stringify-able objects.

Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants