go to,
Google API Console
then go to your application in OAuth 2.0 Client IDs, and edit:
Authorized redirect URIs
Add the following URL:
https://your-site/api/method/frappe.integrations.google_oauth.callback
and
https://your-site cmd=frappe.integrations.doctype.google_drive.google_drive.authorize_accessappe.integrations.google_oauth.callback

