How to fix OAUTH 2 redirect uri error "400 Oauth2 policy keeping apps secure."

319 Views Asked by At

I got

this error

please help me

enter image description here

I changed redirect_uri on google develop console

http://localhost:8000/api/google-callback

and

https://localhost:8000/api/google-callback

both got same error

1

There are 1 best solutions below

4
On

enter image description here

is telling you that you are using HTTP when you should be using HTTPS

Your application is sending from http://localhost:8000/api/google-callback which is not considered safe for use with authorization. you need to configure your application to run https so that it will send from https.

Use secure redirect URIs and JavaScript origins

enter image description here