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
First, follow the guide to [set up signature verification for event webhooks](https://sendgrid.com/docs/for-developers/tracking-events/getting-started-event-webhook-security-features/)
2
2
3
+
**Note:** It is important that the body of the request is verified raw (as a `Buffer` or `string`), not after it was parsed as `json`.
4
+
If you are using `express.json()` or `bodyParser.json()` you will need to exclude the webhook path from it (one way to do it is using [express-unless](https://www.npmjs.com/package/express-unless)).
5
+
3
6
An example of a server to process incoming event webhooks:
4
7
```javascript
5
-
constbodyParser=require("body-parser");
8
+
constbodyParser=require("body-parser"); // With Express 4.16+ you do not need this and can use express.json() and express.raw() instead
0 commit comments