DAST
Adding headers and cookies
-
Last updated: October 30, 2025
-
Read time: 2 Minutes
Custom headers and cookies enable you to authenticate or add required headers for your web applications. You can add custom headers and cookies to sites, folders, or subfolders.
Adding custom headers
To add a custom header:
- Select a site or folder, and then select the Details tab.
- Click Edit.
- Under Scan settings, go to the Headers and cookies tab.
- Click Add a header or cookie.
- Select Add header.
- Name - Enter the header name (for example:
ConnectionorAuthorization). - Value - Enter the header value. For example:
- For Connection:
keep-alive - For Authorization:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9... - For User-Agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)
- For Connection:
- Scope Prefix - Enter
https://api.example.com/or leave empty for all requests. - Click Finish to close the dialog box, then click Save.
Note
You can also use a custom scan configuration to customize your User-Agent.
Adding session cookies
To add a session cookie:
- Select a site or folder, and then select the Details tab.
- Click Edit.
- Under Scan settings, go to the Headers and cookies tab.
- Click Add a header or cookie.
- Select Add cookie.
- Complete the fields:
- Name:
session(the cookie name) - Value:
abc123def456ghi789(anything that comes aftersessionin the cookie) - Scope Prefix:
https://example.com/secure/(for secure areas only)
- Name:
- Click Finish to close the dialog box, then click Save.
Understanding scope prefix
Scope prefix controls where your header or cookie is applied:
- With a prefix: Header/cookie only applies to URLs starting with that exact prefix
- Empty: Header/cookie applies to all requests within your site scope
Examples:
https://example.com/admin/- Only admin sectionhttps://api.example.com/v1/- Only API v1 endpoints- Empty - All requests in your site scope
To add additional headers or cookies, click the add icon .
To edit a header or cookie from the list, click the edit icon .
To delete a header or cookie, click the trash icon .