Created
September 25, 2020 08:45
-
-
Save samthomson/6484431d0e8b097c3f52b345f8fe70cf to your computer and use it in GitHub Desktop.
add hmac signed url to header
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add hmac signed url to header. requires a variable to be set on collection. replace key with whatever. | |
``` | |
pm.request.headers.add({ | |
key: 'sign', | |
value: CryptoJS.enc.Hex.stringify(CryptoJS.HmacSHA512(request['url'], pm.collectionVariables.get("SECRET"))) | |
}); | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment