You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method would be used to validate the webhook signature is valid.
Based on the documentation:
The signature is calculated as follows:
SHA1-Hex-Digest("{data}{timestamp}{api_secret}")
Usage:
var data = response.body;
var x_ts = response.header['X-Cld-Timestamp'];
var x_sig = response.header['X-Cld-Signature'];
var sig = cloudinary.utils.webhook_signature(data, x_ts)
if (sig == x_sig) {
console.log('valid');
} else {
console.log('invalid');
}
The text was updated successfully, but these errors were encountered:
This method would be used to validate the webhook signature is valid.
Based on the documentation:
Usage:
The text was updated successfully, but these errors were encountered: