Back

[SOLVED] Error 400Invalid `success` param: URL host must be one of: localhost, cloud.appwrite.io

  • 0
  • Tools
  • Accounts
  • Web
  • Users
vishwa
8 Jan, 2024, 18:41

Hey when i try to login via google on my next app. I get such error. The redirect link is an app hosted in vercel and has .vercel.app in its domain. How do i fix this issue?

TL;DR
To fix the "Error 400 Invalid `success` param: URL host must be one of: localhost, cloud.appwrite.io" issue when logging in via Google on a Next.js app hosted on Vercel with a .vercel.app domain: 1. Go to your console and navigate to "Settings -> Custom Domains". 2. Add your .vercel.app domain to the list of custom domains. 3. Save the changes. The issue should be resolved after adding the custom domain.
Guille
8 Jan, 2024, 18:56

In your console you should go to Settings -> Custom Domains and add your .vercel.app domain

Drake
8 Jan, 2024, 19:47

would you please add a hostname that has an exact matching hostname (not wildcard)?

Related issue: https://github.com/appwrite/appwrite/issues/6322#issuecomment-1850534416

vishwa
8 Jan, 2024, 19:48

Yeh got it fixed thanks a lot

ideclon
9 Jan, 2024, 07:06

If your issue has been solved, you can mark this post as closed by adding "[SOLVED]" to the beginning of the title

Aditya Oberai
9 Jan, 2024, 17:06

[SOLVED] Error 400Invalid success param: URL host must be one of: localhost, cloud.appwrite.io

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more