When I run google vision api in the development environment, I get the error ↓.
'"message"=>Requests from referer <empty> are blocked.' '"status"=>"PERMISSION_DENIED",
Restricting API referrer How to operate even if referrer is restricted in the development environment
If Referer is set in header, it also works with hocalhost.
https://qiita.com/kasajei/items/78f934b943ebdff7ef08 headers = { 'Content-Type': 'application/json', 'Referer': 'your domain here' }
Recommended Posts