Skip to content

#91 · Advanced Configuration: Configure Headers in Playwright Authentication

We’ve added the PlaywrightUserPreset option to the advanced configuration settings. This allows you to inject optional headers during the authentication process and for authenticated requests, giving you more flexibility when setting up tests.

How to Set It Up:

  1. Go to the settings of the relevant app.
  2. Navigate to Scan configuration → Expert.
  3. Under presets,

use the following structure:

 presets: type: playwright
 type: playwright
 login_url: https://auth.example.com/login`
 users:
   header:

Benefits:

  • The preset feature makes it easier to configure authentication in Playwright-based testing, saving time and improving accuracy.
  • It allows you to inject custom headers, making it easier to handle complex authentication flows.
  • With the ability to configure headers, you can fine-tune authentication behavior to match your exact requirements.
  • Ensures that authenticated requests during scanning will include the necessary headers, reducing the chance of skipped or incorrect tests.