
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
- SSR Image Previews
I am using the SSR guide (with SvelteKit) to use Appwrite on both the server and the client. I do this by also passing the cookie back to the client and creatin...
- Multiple Set-Cookie headers collapsed on...
I’m deploying a Next.js 15 app to Appwrite → Deploy → Sites. In app/api/auth/login/route.ts I try to set 3 cookies. Variant A (manual headers): const headers ...
- can't send emails
i explored the docs and it says Messaging.CreateEmail() but this function does not exist , i installed appwrite on next js env everything works fine except thi...
