SendGrid incoming mail webhook - how do I secure my endpoint

前端 未结 1 979
孤城傲影
孤城傲影 2021-01-01 18:14

I\'m currently using SendGrid\'s Inbound Parse Webhook to feed emails to my application. I\'ve been able to get it working by pointing the URL to an endpoint which my applic

相关标签:
1条回答
  • 2021-01-01 18:38

    There are two ways which you may secure your endpoint. SendGrid's webhooks support basic auth (e.g. https://user:pass@example.com/endpoint). You can also implement a unique key, that you check before acting upon the request (e.g. https://example.com/endpoint?key=123).

    The simple answer, however, is anything that you add to the URL can act as unique authentication for SendGrid.

    0 讨论(0)
提交回复
热议问题