Please ensure that the client is sending referer or use the API Console to remove the referrer restrictions.Google Calendar API

By Panchi

I have to try get google calander events through javascript.

in google console, I create a project, API Key, OAuth client id and enable API for Google Calendar.

I have set Authorized javascript origin as http://localhost.

gapi.auth.authorize({ client_id: clientId, scope: scopes, immediate: false }, handleAuthResult);

two days before working fine but yesterday it didn’t worked and sohwing the below error.

The request did not specify any referer. Please ensure that the client
is sending referer or use the API Console to remove the referrer
restrictions.

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273