Skip to content
Back

Getting Cors Error while running console on localhost

  • 0
  • Self Hosted
Shreyam
6 Oct, 2025, 19:27

Hi. Can anyone help me resolve this. I was not facing CORS error 15 minutes ago but now for some reason I am getting it and not able to resolve it.

TL;DR
Developers are experiencing a CORS error while running their console on localhost. They are unsure how to resolve the issue and have tried adjusting the port in the .env file without success. Suggestions have been made to ensure the correct port is specified in the .env file and to check if 'localhost' should have an associated port. They are seeking assistance to fix the sudden CORS error.
Kenny
6 Oct, 2025, 19:29

should your localhost have a port associated with it?

Shreyam
6 Oct, 2025, 19:29

port 3000

Kenny
6 Oct, 2025, 19:30

your env does not reflect that?

Kenny
6 Oct, 2025, 19:30

It tried to call localhost/v1, would that cause an issue?

Shreyam
6 Oct, 2025, 19:33

.env is copied from .env.example

Shreyam
6 Oct, 2025, 19:34

I tried putting port in .env but then on restarting I am getting 404 for account and prefs api

Shreyam
6 Oct, 2025, 19:39

Any way to resolve this?? I am not able to work on the issue I am assigned to 😅

Kenny
6 Oct, 2025, 19:53

What port is the appwrite api running on?

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