Skip to main content

Set Request Headers in Scan Scripts

Improvement

The new setHeader() function lets you set custom request headers during scans — useful for authentication tokens, bypassing bot detection, or controlling cache behaviour.

Call setHeader("Authorization", "Bearer ...") in your scan script and the header will be sent with every request the scanner makes. You can set multiple headers, and they persist for the duration of the scan session.