-
Notifications
You must be signed in to change notification settings - Fork 44
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
Google maps API key missing and cross origin requests blocked #34
Comments
Hmm... You have internet access and can access maps.google.com normally? To be honest, my web knowledge is weak and I barely scrapped this webpage together. It might be difficult for me to debug. Is it still not working for you? |
Yes connection and google maps are working, can you verify if your setup is still working with current browsers? |
You can try to change 34 socketio = SocketIO(app) for this: 34 socketio = SocketIO(app, cors_allowed_origins='http://localhost:5000') You can also instruct the server to allow all origins with "A special value of '*' can be used to instruct the server to allow all origins, but this should be done with care, as this could make the server vulnerable to Cross-Site Request Forgery (CSRF) attacks" Besides that, If you are using Google I think you need an API key : https://developers.google.com/maps/documentation/embed/get-api-key |
Thanks, It fixed the cross origin related error. |
By reading here looks like the developer has to change the api version rather than adding the key or maybe both. |
Hi! Sorry, I don't know how it works now... I'm not using Google Maps because this part of getting/use API key is very confusing. I reinstalled |
Sorry for the late response. @edersonrmachado, yes, I migrated to Thanks for pointing this out, and poking around enough to find the leaflet implementation! Please let me know if you encounter issues with it or have other feature requests. |
np @mhostetter, thanks for developing the leaflet version and makes your project open source |
HI,
when I load the tracking page from the webserver I get this errors:
The text was updated successfully, but these errors were encountered: