Back

Calling a Function with its appwrite URL with API key

  • 0
  • Functions
Gary Schellhas
25 Jan, 2024, 19:45

I am trying to call a Function that I have protected with its generated appwrite.global url. When I have it allowed to be called publicly, I get a response, but if I protect it with All User access, I can not figure out how I can call the function with using an API key I generated.

I made sure to use the X-Appwrite-Key: and X-Appwrite-Project: headers.

I get an error about execute permission role.

TL;DR
Developers are trying to call a protected Appwrite function using its generated appwrite.global URL. They can successfully call the function when it is allowed to be called publicly, but encounter issues when trying to call it with an API key. They have already included the necessary headers (X-Appwrite-Key and X-Appwrite-Project), but receive an error regarding execute permission role.
Gary Schellhas
25 Jan, 2024, 19:46

I know this may not be the best way, but trying to understand all facts of Appwrite

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more