Lurker News

Comments (334) 97 threads

Show all comments

Showing thread 43 of 97

RamblingCTO1 reply#
Hm, I have no results, I can only see Google on the left side. The console says:

Uncaught TypeError: data.queries is undefined web https://swurl.com/?q=google+translate:1179 jQuery 6
But no blocked requests.

ryes1 reply#
Hrmm, sorry about that. Please try again now. I added some more checking code. https://swurl.com/?q=google+translate

If it still isn't working, could you let me know the exact URL you are looking at? And browser you are using?

RamblingCTO#
Hah, got it. I use uMatrix, which spoofs the http referer header. Google apparently does not like that:

// API callback webgoogle({ "error": { "code": 403, "message": "Requests from referer https://www.googleapis.com/ are blocked.", "errors": [ { "message": "Requests from referer https://www.googleapis.com/ are blocked.", "domain": "global", "reason": "forbidden" } ], "status": "PERMISSION_DENIED", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "reason": "API_KEY_HTTP_REFERRER_BLOCKED", "domain": "googleapis.com", "metadata": { "service": "customsearch.googleapis.com", "consumer": "projects/blabla" } } ] } } );