I am trying to send a post request to one of my functions and I always get an CORS Error `<script> const url = "https://sample.appwrite.global/"; const headers = { "Content-Type": "application/json" };
const data = { "key": "", "uid": "" };
fetch(url, { method: 'POST', headers: headers, body: JSON.stringify(data) }) .then(response => response.text()) .then(data => console.log(data)) .catch(error => console.error('Error:', error));
</script>`
This is the code on the client side 👆
I have attached the error screenshot as well as platform web app hostname
Any help would be much appreciated
Recommended threads
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...
- I have try to use the appwrite in to the...
Invalid Origin. Register your new client (oailedjdbkhlkakmnnapoonllbnfmfij) as a new Web (Chrome Extension) platform on your project console dashboard