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
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...