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
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...
- NEW ERROR Invalid document structure: At...
Error: ```AppwriteException: document_invalid_structure, Invalid document structure: Attribute "pb.kmsgxPkgInfo.id_info" must be an array (400)``` I’m encounter...
- Issues with executor in Appwrite 1.9.0
Hi, I’ve recently did a fresh install of appwrite 1.9.0 self hosted and when I run a function, it just waits indefinite This is the error from the log: [Er...