
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
- phantom relationships appear on parent c...
i have this bug were my past deleted collection apears as relationship to my parent collection. when i try to delete that relationship from parent it gives me e...
- Attribute stuck on proccessing
i tried creating a new attribute butits stuck on proccessing,i did a hard refresh,cleared cache everything but still stuck on proccessing,also in my functions w...
- Appwrite Cloud Custom Domains Issue
I’m trying to configure my custom domain appwrite.qnarweb.com (CNAME pointing to fra.cloud.appwrite.io with Cloudflare proxy disabled) but encountering a TLS ce...
