在本地运行时RefererNotAllowedMapError

时间:2018-06-06 18:04:30

标签: google-places-api googleplacesautocomplete

我正在尝试在本地运行我的项目并与google places API连接,但我收到以下回复:

Google Maps JavaScript API错误:RefererNotAllowedMapError https://developers.google.com/maps/documentation/javascript/error-messages#referer-not-allowed-map-error 您要授权的网站网址:http://localhost:8888/

据我所知,我需要在云平台上提供URL授权,但在本地运行时我怎么想这样做呢?

1 个答案:

答案 0 :(得分:0)

我刚刚遇到过同样的问题。它需要附上信用卡。