While working on my local computer, the OAuth works perfectly. But when I deploy it to the live server. I get this error
Error 400
Invalid success param: URL host must be one of: localhost, cloud.appwrite.io, *.netlify.app
Type
general_argument_invalid
But in my localhost, it works perfectly
TL;DR
The user is experiencing an OAuth 2 login issue when deploying their project to a live server. They receive an error message stating "Invalid `success` param: URL host must be one of: localhost, cloud.appwrite.io, *.netlify.app". However, the OAuth login works fine on their localhost. The solution is to add a web platform that matches the domain exactly instead of using a wildcard one.You'll have to add a web platform that matches the domain exactly rather than a wildcard one
Recommended threads
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- How to properly implement custom domain?...
- Site deployment does not work.
I can change a file, deploy, change does not take effect. Delete file in repo, push changes,deploy. Old file remains undeleted Duplicate file, rename it, push,...