Skip to content

Instantly share code, notes, and snippets.

@samthomson
Created September 25, 2020 08:45
Show Gist options
  • Save samthomson/6484431d0e8b097c3f52b345f8fe70cf to your computer and use it in GitHub Desktop.
Save samthomson/6484431d0e8b097c3f52b345f8fe70cf to your computer and use it in GitHub Desktop.
add hmac signed url to header
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