Learn how to verify webhook requests to ensure they’re coming from Dock.
X-Dock-Signature
and X-Timestamp
header. Dock generates this header using a secret key that only you and Dock know.
An example header looks like this:
DOCK_WEBHOOK_SECRET
). Do not commit it to git or add it in any client-side code.
X-Dock-Signature
header.Request Method + Target Url + Raw Body
using the SHA-256
hash function and the secret.HMAC
with the one sent in the X-Dock-Signature
header. If they match, the webhook is verified.