When creating 2 database resources, and then updating an existent many-to-many resource with that, it gives me No 'Access-Control-Allow-Origin' header is present on the requested resource. CORS error from the respective page, even if the page is added in the whitelist. But when I call the function again from the same page, it doesn't have any problem.
What's the appwrite version you're using?
1.3.5
Did you have ran migration command after upgrading Appwrite?
Will update to 1.3.6 in a few and come back, yes we ran migration command on 1.3.5
after updating to 1.3.6
same issue on web skd for the first update from the page
Did you have ran migration comand?
yes
Is the platform added properly into the appwrite dashboard?
well before running the update I am also running create into two different collections, raffles and keys
which is accepted
only the updateDocument is failing from the page
the flow is createKey => createRaffle => updateDocument(Server.databaseId!, Server.collections.queue!, previousQueueId, { gameTitle: selectedGame.label, updatedAt: new Date(Date.now()), raffles: previousRaffles.length > 0 ? [...previousRaffles, raffle] : [raffle] })
But did you added the domain?
yes
Seems like you should ignore cors, the problem seems to be that the document doesnt exists (404 error)
So probably you're not using any correct ID or similar
hmm, thank you I will go back at it and check
You were right, my variable for updating the queueId was firstly undefined due to how my react behaved so that's why it didn't have it updated after querying first.
Thanks, loving to use Appwrite
[SOLVED] AppwriteException: Network request failed , CORS problem
I also faced the cors error but I check my varaibler are all set. what should I do now. I have next js app
Create a new <#1072905050399191082> post with your details (full logs from the browser and creenshots of what you configured)
Recommended threads
- SSR Image Previews
I am using the SSR guide (with SvelteKit) to use Appwrite on both the server and the client. I do this by also passing the cookie back to the client and creatin...
- Multiple Set-Cookie headers collapsed on...
I’m deploying a Next.js 15 app to Appwrite → Deploy → Sites. In app/api/auth/login/route.ts I try to set 3 cookies. Variant A (manual headers): const headers ...
- Bug: When creating a table, table name i...
I created a table with a typo. my_taable .... then my code couldn't find it. i updated table name and still couldn't find it. the table name doesn't update. i h...