Skip to content
Back

Localhost is invalid origin

  • 0
  • Web
  • Cloud
Black_operative
4 Jun, 2025, 18:11

I have a react app that I'm developing to learn react. I'm almost done with the project. My app is throwing this exception :

TypeScript
Appwrite::AuthService::login::error :  AppwriteException: Invalid Origin. Register your new client (127.0.0.1) as a new Web platform on your project console dashboard

Which is amusing as I've already added localhost to the platform's hostname. I've spent an hour on this to no end, can anyone help me with this :/

TL;DR
Title: Issue with localhost origin validation in React app Messages: Developer is encountering an "Invalid Origin" error in their React app while trying to login using Appwrite. They have already added localhost to the platform's hostname but the issue persists.
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