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
- Function domain not available
Hello, even tho in docs you clearly describe that every function has its domain, I can not see it anywhere in any of my projects. How do I reveal the url of th...
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?