• Resolved mathiasmadsen

    (@mathiasmadsen)


    I have just tried to setup this plugin, but it seems broken. I have tried both to set restrictions to my API key and to disable the restrictions. But even though the ‘Test command’ works, I receive the error ‘Requests from referer <empty> are blocked.’ when clicking on the translate button.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @mathiasmadsen ,

    We’ve reviewed the issue you encountered while translating a post using the plugin, and the error message from Google Translate API —
    “Requests from referrer <empty> are blocked” — indicates that the API key in use is restricted to requests from specific websites (HTTP referrers), but the translation request is coming from the server and has no referrer (which is expected for server-side requests).

     How to Fix It→This needs to be corrected in your Google Cloud Console:

    1. Log into your Google Cloud Console:
      https://console.cloud.google.com/
    2. Go to: APIs & ServicesCredentials
    3. Find the API key used for the plugin and click to edit it.
    4. Under “Application restrictions”, change:
      • From: HTTP referrers (websites)
      • To: None(or “IP addresses” if you want to restrict it to your server)
    5. Under “API restrictions”, make sure only the Cloud Translation API is enabled for this key.
    6. Save changes.

    Once this is updated, the plugin should be able to successfully send translation requests again.

    Please feel free to reach out if you need further assistance, and don’t forget to leave us a rating and feedback.

    Best regards,
    UAPP Support Team

    Hi @mathiasmadsen

    Please let me know if it helped or any further assistance is needed.

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Requests from referer are blocked.’ is closed to new replies.