1 / 8 · Book 14 · Exercises · drill: interview Q&A⊞ allnext →Get the book →
1.3Advanced
Exercise 5: Write a pre-request script that generates an HMAC-SHA256 signature from the request body using a secret stored in an environment variable. Attach the signature as a custom header (X-Signature). Then write a test script that verifies the response acknowledges the signature.