Hello everyone,
I need one help. I am not able to call appwrite functions using axios, its giving me cors error for localhost. I am calling the api from a React app.
You'll need to update your function to allow the origin
Can you please guide me?
step5:1 Access to XMLHttpRequest at 'https://6530d1e603dfbc5254d3.appwrite.global/' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I suggest you read up on CORS and how to enable it
Ok the function ran successfully using appwrite sdk for client
Thanks. I was using axios/fetch
[SOLVED] Cors Issue
Recommended threads
- Does Appwrite allow SSE ?
i'm trying to setup a slack bot on my site. Your deployed SSE endpoint is returning a non‑SSE response …and the browser immediately closes the connection. read...
- Endless certificate generation cycle
Hello, when I try to add the subdomain stats.hedgehog-rp.ru, I get an infinite loop while the certificate is being generated. There are no problems with adding ...
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...