Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(xhr-request): Make sure to also allow strings as url #40951

Merged
merged 1 commit into from
Oct 17, 2023

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 juliushaertl, julien-nc, skjnldsv, a team, Fenn-CS 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

@juliushaertl
Copy link
Member

Duplicate of #40944 but yours seems much nicer :)

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 <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@juliushaertl juliushaertl merged commit d261330 into master Oct 17, 2023
37 of 40 checks passed
@juliushaertl juliushaertl deleted the fix/xhr-request-regression branch October 17, 2023 18:56
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.

3 participants