Skip to content
Discussion options

You must be logged in to vote

Hi,

From the docs: https://nextjs.org/docs/app/api-reference/file-conventions/route#headers

Or from MDN, https://developer.mozilla.org/en-US/docs/Web/API/Request/Request

There's like two ways to get them, but since you are using the Request (req) object, you can use the .get method.

const signature = req.headers.get("x-twilio-email-event-webhook-signature");
const timestamp = req.headers.get("x-twilio-email-event-webhook-timestamp");

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Elindo586
Comment options

Answer selected by Elindo586
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants