Enterprise Edition
Adding headers and cookies
-
Last updated: June 6, 2024
-
Read time: 1 Minute
You can add custom headers and cookies to requests made when scanning a site. This enables you to, for example:
- Configure header authentication.
- Control request throttling.
You can add a header or cookie when you edit an existing site, or when you add a new site:
- Under Scan settings, go to the Headers & cookies tab.
- Click Add a header or cookie. The Add header or cookie dialog opens.
- In the Add header or cookie dialog, select either Add header or Add cookie.
-
Specify the header or cookie details:
- Name - Enter a name for the header or cookie.
- Value - Enter the header or cookie value.
- Scope prefix - Enter a URL prefix to define the scope for the header or cookie. Make sure that this is within the overall site scope.
- Click Add.
The header or cookie is added to the list in the Headers & cookies tab. Burp Scanner now adds the name and value of the header or cookie to all requests that match the scope prefix.
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 .
Note
You can only add headers and cookies for sites. You can't add headers and at the folder or subfolder level.