
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
- Functions in Dotnet, but where are refer...
I understand that dotnet support for things is still a little on the sidebar, but is there a way I can have the proper references to view what RuntimeContext is...
- Error loading shared library libresolv.s...
`OSError: Error loading shared library libresolv.so.2: No such file or directory (needed by /usr/local/server/src/function/runtime-env/lib/python3.12/site-packa...
- Python: Execution timeout with xasync=tr...
Hello, I have a long running function that is meant to analyze and update ~100k entries into Appwrite. The data is retrieved as a blob from another source and...
