Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions webhooks/security.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ Each webhook request includes an `X-Firecrawl-Signature` header:
X-Firecrawl-Signature: sha256=abc123def456...
```

### How to Verify
To verify a request:

1. Extract the signature from the `X-Firecrawl-Signature` header
2. Get the raw request body (before parsing)
3. Compute HMAC-SHA256 using your secret key
4. Compare signatures using a timing-safe function
1. Extract the signature from the `X-Firecrawl-Signature` header.
2. Read the raw request body before parsing.
3. Compute HMAC-SHA256 using your secret key.
4. Compare signatures with a timing-safe function.

### Implementation
### Example

<CodeGroup>

Expand Down