json Daten während folgen Sie dem angegebenen Link, aber es funktioniert, wenn ich in unser Projekt integrieren.Warum google place api Integration nicht funktioniert
-1
A
Antwort
0
Server können CORS ermöglichen, was bedeutet, dass sie Anfragen von anderen Domänen akzeptieren. Jeder Server ist jedoch unterschiedlich, und die meisten APIs erlauben immer noch keine stammursprungsabhängigen Anforderungen. Es sieht so aus, als wäre api.geonames.org einer von denen, die CORS nicht unterstützen.
Beachten Sie, dass CORS nur für Anforderungen gilt, die von einem Browser gesendet werden. Wenn Sie diese API von einem Backend-Server (wie Node oder Rails) verwenden, funktioniert das problemlos.
Verwandte Themen
- 1. Google Place API für Parkplätze
- 2. Warum funktioniert Google API-Schlüssel nicht?
- 3. Google Place Autocomplete nicht
- 4. Google Place api URL iOS
- 5. AngularJS - API-Schlüssel für Google Place Autocomplete
- 6. Google Place Picker API mit Google Directions API integrieren
- 7. Android Google Place API nächste Seite
- 8. Google Places API - Place ID-Format
- 9. Google Place Photo API gibt 404 zurück
- 10. Google Place API-Nutzungsbeschränkungen und -abrechnung
- 11. Ungenaues Suchergebnis von Google place API (Geocoding)
- 12. Integration in angular2 App Google Maps - Place Autocomplete
- 13. Pick Place Error - Google Places API
- 14. Google place Api PlaceDetails Foto Referenz
- 15. Google Place Details Android
- 16. Unterschied zwischen Google Maps Place API und Google Maps Time Zone API
- 17. Google Place Autocomplete-API nicht neueste Name der Stadt Rückkehr
- 18. Google Places API-Details Sprache funktioniert nicht
- 19. Google API WebRequest funktioniert nicht
- 20. Symfony2 und Google API-Integration
- 21. Google place id
- 22. Bounds funktioniert nicht für GMSAutocompleteFetcher in Google Place-API in iOS-Ziel C
- 23. Google API-Visualisierungstabelle funktioniert nicht
- 24. Google Karte API funktioniert nicht
- 25. Google Place In API zurückkehrend INVALID_REQUEST für C# Client
- 26. Google API Autocomplete funktioniert nicht richtig
- 27. Angular Google Map Integration
- 28. Docopt | Google Drive Api Integration Problem
- 29. Google Place Api gibt Status {statusCode = FEHLER, Auflösung = null}
- 30. multiple permissions google fit api integration
Haben Sie versucht, googeln "Cross Ursprungsrichtlinie" oder "CORS" (oder etwas anderes aus der Fehlermeldung in Ihrem Bild)? – nnnnnn