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
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- 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 ...