Error 400: invalid_request Invalid parameter value for redirect_uri: Raw IP addresses not allowed: http://0.0.0.0:31822/connect/google/callback

System Information
  • Strapi Version: 3.3.4
  • Operating System: Linux
  • Database: Postgres
  • Node Version: 14.15.1
  • NPM Version: 6
  • Yarn Version:

I have deployed it to heroku, but the google provider when visting the page shows this error

You should define your public url into the Google, inside the
Authorized redirect URIs

Take a look at the Google example sections:
https://strapi.io/documentation/v3.x/plugins/users-permissions.html#providers

This may be outdated, but for the future users who’s gonna face the same problem, the solution can be as easy as adding url to your server.js file