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
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126