
localhost
is accepted by default as Meldiron said here https://discord.com/channels/564160730845151244/1106531116317417564/1108048851690078279
Are you accessing your website using localhost
or 127.0.0.1
? it solved the problem in my previous case.

If it's appwrite cloud, why did you have or want to setup it as localhost?

I think its for local web development

At least with the cloud tag it makes me think the user is trying to setup localhost as a domain the the appwrite Cloud console or locally. You can make that locally, however it will not work in your app, since it's needed to setup the computer's IP as domain as you said


I'm trying this from localhost
. I'm making the request from a Client Component in NextJS. is it causing anything?

Interesting
Can you change this to *
and retry?

still getting the same error

In your network tab what value you have in Access-Control-Allow-Origin:

i also have the same

So, It's not a cors problem,

Everything else in the api calls is in order?

@manazo this is weird lol. could you share the code wherre you're making a request to Appwrite from your client component?

i see 3 requests to account
. are all of them the same request?

here's the code. I don't find any issues in the code. and if it's not a cors problem, why I'm seeing a cors error in the console?

can you also share the code in appwrite-config
? looks like a custom component

when I do one request, it shows 3 logs in Network
. I'm not sure why it's happening. I've confirmed my function is getting called only once by a consol.log()

What is the content in the preview tab for the first 404
request?

not a custom component. I'm just exporting everything related to appwrite
for better dev experience

says failed to load

What could happened is when the value of the project is not the exact one, then in this use-case Appwrite will return 404, can you verify that it is the correct one? and that it's actually being send as header in the request?

i really should rethink my career choice. i was working with a paste mistake in the project id all this time

Happens to anyone

thanks to both @Binyamin & @safwan. you guys really helped

[SOLVED] how to connect to cloud endpoint?
Recommended threads
- UI for creating API keys is broken (chro...
It get stuck like in the screenshot, cant scroll further down or find/click the button to create the API key.
- I want to know about the new pricing pla...
My project is around 150 to 200 in appwrite so do I have to pay $15 per project for each of them separately or just for them will I have to pay only $25 monthly
- Show execution status 500 unable to set ...
I want to set the labels at the time user signup to my application , all things work , users data save in auth, updateprefs set , a verification email sent , bu...
