--- title: "Custom HTTP headers" slug: "custom-http-headers" updated: 2025-05-30T03:30:40Z published: 2025-05-30T03:30:40Z canonical: "helpcenter.autify.com/custom-http-headers" --- > ## Documentation Index > Fetch the complete documentation index at: https://helpcenter.autify.com/llms.txt > Use this file to discover all available pages before exploring further. # Custom HTTP headers In some situations, you may want Autify Nexus to send custom HTTP headers when accessing your application under test. This can be helpful in situations like: - Skipping A/B testing or canary deployments - Forcing the website to use a specific language (e.g., via the `Accept-Language` header) - Sending a secret key required for access ## How to set it up Add a Playwright code step **before** the first “Navigate” step in your scenario, as shown below: ```typescript await context.setExtraHTTPHeaders({  "[header name]": "[header value]", }); ``` Replace `[header name]` with the name of your header (e.g., `X-My-App-Setting`). Replace `[header value]` with the value you want to send. You can include multiple headers by adding more lines inside the `{ … }` block, for example: ```typescript await context.setExtraHTTPHeaders({  "X-My-App-Setting": "value1",  "Accept-Language": "en-US", }); ```