is there a speicifc way to execute ,request a function?
The project doesn't seems to be blocked, I think?
Just CORS not set
i resolveed the cors issue now its block, here is the code of function:
// This Appwrite function will be executed every time your function is triggered export default async ({ req, res, log, error }) => {
// Handle preflight (OPTIONS) requests for CORS
if (req.method === 'OPTIONS') {
return res.send('', 204, {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type, Authorization, X-Appwrite-Key'
});
}
return res.json({ motto: "HELLO CORS!" }, 200, { "Access-Control-Allow-Origin": "*", }); };
Recommended threads
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...
- SPA Not working
So I'm using vite/react, which is spa, and it used to work before, but now whenever I go to any route except the root it shows appwrites 404 page, instead of us...
- Issue with downloading large files (40GB...
Hi everyone! I am using the latest Appwrite 1.8.0 version on my self-hosted server. I successfully uploaded a large ZIP archive (~40GB) using the chunked uploa...