Skip to content

Conversation

vkurup
Copy link
Contributor

@vkurup vkurup commented Apr 8, 2025

If the SDK is used from a browser, then sending the User-Agent header triggers a preflight request to the server and we don't specify that it is allowed. This PR only adds a User-Agent header if the SDK is being used outside of a browser.

@vkurup
Copy link
Contributor Author

vkurup commented Apr 8, 2025

sc-70507

@vkurup
Copy link
Contributor Author

vkurup commented Apr 8, 2025

Also closes #57

@vkurup vkurup merged commit fe9e103 into master Apr 9, 2025
5 checks passed
@vkurup vkurup deleted the vinodkurup/sc-70507/js-sdk-only-send-user-agent-if-env-is-not branch April 9, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants