You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.From the Database -> Webhooks page Select **Create a new hook** button
209
209
2. Name the hook "push-order-confirmation-to-user"
210
210
3. Set the table to `orders`
211
211
4. Select **Insert** checkbox
212
212
5. Set hook type to HTTP Request
213
213
6. Set the HTTP request method to **POST**
214
214
7. Set the URL to the edge function, `push-order-confirmation-to-customer`
215
215
8. Add a HTTP Header named `Authorization` and set the value to `Bearer [Your Supabase project's anonKey]`
216
-
9. Select **Confirm** confirm button to complete setup 
216
+
9. Select **Confirm** confirm button to complete setup
217
+
218
+
💡We need to include the Authorization header so the edge function can verify the request. Without this header, anyone would be able to call our endpoint.
0 commit comments