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

Only use user agent in node env #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

RaphaelEscrig
Copy link
Collaborator

In web browsers, modifying the User-Agent header for HTTP requests via JavaScript is generally impossible due to security and standardization reasons. Modern browsers restrict access to the User-Agent header to prevent spoofing and ensure consistency in identifying the client (browser, version, OS).

Instead, we can use alternative methods to send custom information in HTTP requests such as Custom Headers like X-Custom-User-Agent to include SDK-specific details.

@RaphaelEscrig RaphaelEscrig added the bug Something isn't working label Jan 3, 2025
@RaphaelEscrig RaphaelEscrig self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant