admin管理员组

文章数量:1297116

I'm trying to run this project call thing translator from and I found this error while running it.

It says:

{error: {code: 403, message: "Requests from referer http://localhost/www/index.html are blocked.",…}}

I'm trying to run this project call thing translator from https://github./dmotz/thing-translator and I found this error while running it.

It says:

{error: {code: 403, message: "Requests from referer http://localhost/www/index.html are blocked.",…}}
Share Improve this question asked May 8, 2017 at 14:26 DaniahDaniah 911 silver badge2 bronze badges 4
  • 1 You need to set up your API key. – SLaks Commented May 8, 2017 at 14:42
  • 1 @SLaks i've already set up the API key. Still not working. – Daniah Commented May 8, 2017 at 14:48
  • 1 You need to set it up to allow that referer. – SLaks Commented May 8, 2017 at 15:49
  • May I know which referrer are you talking about? – Daniah Commented May 9, 2017 at 14:26
Add a ment  | 

1 Answer 1

Reset to default 9

Check your Google Cloud API key restriction.

本文标签: javascriptLocalhost requests from referer are blockedStack Overflow