に協力していない、コードparamsは正しいと次のスニペットGoogleプレイスのWeb APIは、私はGoogleの場所オートコンプリートAPIを照会しようとしていたSuperAgent
request.get(`https://maps.googleapis.com/maps/api/place/autocomplete/`).query(params)
を使用すると、私にCORS例外を与え、失敗します
Failed to load https://maps.googleapis.com/maps/api/place/autocomplete/json?input=amsterdam&key={super secret key}: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:7000' is therefore not allowed access.
[ネットワーク]タブに切り替えると、要求自体が完全に正常に動作していることがわかり、必要な日付が返されることもわかります。
私はsuperagent-es6-promiseで作業しています。
関連https://stackoverflow.com/questions/44336773/google-maps-api-no-access-control-allow-origin-header-is-present-on-the-reque/44339169#44339169とhttps: //stackoverflow.com/questions/43443836/angular-cors-jsonp-and-google-maps-http-api-calls/43444274#43444274 – sideshowbarker