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