Validating Requests from ClearFeed
To validate that a request originated from ClearFeed, follow these steps:
Grab your webook secret from the Developer Settings Page.
Extract the verb, URL, body and timestamp from the request. The timestamp to use here is the
X-CF-Timestamp
header. Concatenate all of these and hash them using the webhook secret obtained above.Compare the resulting signature with the signature in the request.
Here's how it can be done using JavaScript:
Last updated