
So let's say I have an endpoint (https://RANDOM_APPWRITE_ENDPOINT.appwrite.global/) and it has a basic function like this:
export default async ({ req, res, log, error }) => {
return res.json({ status: true }, 200, {
'Access-Control-Allow-Origin': 'ENTER_MY_ENDPOINT_HERE',
});
}```
I can call this function using axios and get the response "status: true" when my execute access is set to ANY
try { const response = await axios.get('https://RANDOM_APPWRITE_ENDPOINT.appwrite.global/'); console.log(response.data); } catch (error) { console.log(error); }```
How can I get the response "status: true" if my execute access is set to USERS only? I am logged in using createEmailPasswordSession
Recommended threads
- How to get event payload/source from fai...
Hi everyone, I'm currently working with Appwrite's database triggers, specifically for document creation events. I've encountered a potential issue and was h...
- Creating a custom function ID in the con...
Console Version 1.8.0 Google chrome Version 139.0.7258.66 (Official Build) (64-bit)
- Function stuck and has exceeded timeout
I have a function, or more specifically, an execution that has been running for 20+ minutes. It still says "processing". I have a timeout of 6 minutes for that...
