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

Remove user-agent filter #9

Open
wants to merge 1 commit into
base: mer-5.6
Choose a base branch
from
Open

Conversation

szopin
Copy link

@szopin szopin commented Jun 1, 2023

No longer forbidden for XHR:
https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name
Note: The User-Agent header is no longer forbidden, as per spec — see forbidden header name list (this was implemented in Firefox 43) — it can now be set in a Fetch Headers object, or with the setRequestHeader() method of XMLHttpRequest. However, Chrome will silently drop the header from Fetch requests (see Chromium bug 571722).

No longer forbidden:
https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name
Note: The User-Agent header is no longer forbidden, as per spec — see forbidden header name list (this was implemented in Firefox 43) — it can now be set in a Fetch Headers object, or with the setRequestHeader() method of XMLHttpRequest. However, Chrome will silently drop the header from Fetch requests (see Chromium bug 571722).
@pvuorela
Copy link
Contributor

pvuorela commented Jun 6, 2023

Change could be fine, but is there some rationale for doing it? XHR from qtdeclarative shouldn't generally happen that much and when it does, does it matter much what's the useragent? Hence pondering do we need to add delta here.

@szopin
Copy link
Author

szopin commented Jun 6, 2023 via email

@pvuorela
Copy link
Contributor

pvuorela commented Jun 6, 2023

So suppose you have some app using QML XMLHttpRequest API? Did you test that this change fixes problems related to that?

@szopin
Copy link
Author

szopin commented Jun 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants