Hi, so I am trying to setup multiple services which send events through webhooks to my appwrite project.
I have setup functions that will receive and process these requests.
A typical configuration in these services asks for a webhookUrl at which they will send their updates. I understand this url would be the execution url of my function. Ex.https://myprojecturl/v1/functions/function-id/executions
- for external services to be able to hit an appwrite url, they need to include a header ie. x-appwrite-project:<ProjectId>. I dont see any configuration in these services where I can ask them to include this custom header in their requests. Is there a different way that I can allow requests?
- When working with these external requests the function must have "Guest" scope enabled, this means anyone can hit it. Is there any way that I can selectively allow only a certain service to be able to access my function?
- use the function domain instead.
- do the auth check in your function code. For example, for stripe, we check the webhook signature and validate it.
Recommended threads
- Free plan Usage
I using a free plan with one organization. I have three projects but on the free plan I should be able to have 2 projects running But in my case only 1 out of ...
- SPA Not working
So I'm using vite/react, which is spa, and it used to work before, but now whenever I go to any route except the root it shows appwrites 404 page, instead of us...
- Get Started - Web is broken
Trying to complete the get started tasks since the "66%" was finally getting to me, and clicked on "web", was met with: ``` Uncaught TypeError: Cannot read prop...