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

Geolocation error: User denied geolocation prompt #360

Open
rmoggia opened this issue Jan 17, 2023 · 5 comments
Open

Geolocation error: User denied geolocation prompt #360

rmoggia opened this issue Jan 17, 2023 · 5 comments
Labels

Comments

@rmoggia
Copy link

rmoggia commented Jan 17, 2023

Hello.
I followed your installation instructions with the Berlin map. It seems that everything went well except for some warnings.
I tried this:
curl "http://127.0.0.1:5000/route/v1/driving/13.388860,52.517037;13.385983,52.496891?steps=true"
And I get a json that I think is valid
{"code":"Ok","routes":[.....
I installed the front end but when I enter the coordinates I get the error mentioned in the title.
What did I do wrong? Thanks

@jcoupey jcoupey transferred this issue from Project-OSRM/osrm-backend Jan 17, 2023
@jcoupey
Copy link
Contributor

jcoupey commented Jan 17, 2023

Just moved this to the osrm-frontend repo as it is not backend-related.

How exactly do you "get" the error? Is there any pointer on potential errors when you use your browser dev tools?

@rmoggia
Copy link
Author

rmoggia commented Jan 17, 2023

Hi.
I am attaching an image with the blocking errors. If I understand correctly some missing fonts are not downloaded. Another error message is:
A Geolocation type request can only be made in a secure context.
Thanks
osmr

@jcoupey
Copy link
Contributor

jcoupey commented Jan 17, 2023

Looks like you have a CORS problem that prevents reaching to locahost:5000.

@rmoggia
Copy link
Author

rmoggia commented Jan 18, 2023

Hello. Thanks to your help I got over the CORS problem, but still get the same error. If I understand correctly it is an https problem. How can I fix? Thanks
A Geolocation type request can only be made in a secure context.

@robinsonkwame
Copy link

@rmoggia set Chrome to allow unsafe CORS for the service, using these steps

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

No branches or pull requests

3 participants