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

User-Agent header is creeping browsers out #25

Closed
chrstnbwnkl opened this issue Apr 20, 2023 · 0 comments
Closed

User-Agent header is creeping browsers out #25

chrstnbwnkl opened this issue Apr 20, 2023 · 0 comments

Comments

@chrstnbwnkl
Copy link
Member

By default we're sending a User-Agent header that includes the library name. When using the library in a browser-side project, this sounds the alarms of a couple of modern browsers :D They perform a pre-flight check on the server (since it's CORS). This is a problem at least with the Valhalla instance on OSM, since it doesn't support OPTIONS requests. We should probably remove it since in browser contexts this should be reserved for the browser.

This was referenced May 30, 2023
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

No branches or pull requests

1 participant