Restricted API Dashboard Warning
-
Hi,
First, amazing plugin, I only discovered it a couple of weeks ago and it has really helped boost two of my client sites.
Everything is working fine with the plugin but I wanted to point out a potentially confusing error message that intermittently appears in the WP Admin area if you use a restricted YouTube API key.
Here is a sample, message that appears at the top of a WP-Admin page:
WP YouTube Lyte got the following error back from the YouTube API: forbidden (Mon, 31 May 2021 04:34:23 +0000)..
A different message appears when you press the Test Key button in the plugin settings. I completely understand “why” the message appears (its intermittence seems to be related to cache clearing but maybe also a cron job?)
Your API key might be OK, but the API call did not succeed or the response was not entirely expected. Technical error: forbidden
I know the API key works fine and the plugin is performing as expected and these warnings are appearing because I have restricted the API usage to the site domain but they may potentially confuse some users.
Might it be worth noting somewhere on the settings page or documentation what happens when a restricted API is used? It might also be useful to advise plugin users to set up a restricted HTTP Referrer list to protect API usage and API billing.
Thanks again for a truly wonderful, easy to use and powerful plugin.
Kind regards,
Simon
- The topic ‘Restricted API Dashboard Warning’ is closed to new replies.