πPynt for Playwright
Integrate Pynt with Playwright to enable automated API security testing alongside your end-to-end browser tests.
What is Playwright?
Pyntβs Integration with Playwright
As part of its dynamic API security suite, Pynt integrates with Playwright by observing the traffic generated during test execution. By running Playwright tests behind Pyntβs proxy, the APIs invoked during test flows are captured and analyzed for vulnerabilities.
Pynt works by intercepting HTTP(S) traffic. It launches your test script with a local proxy and then analyzes the captured API interactions.
Configuring Proxy in Playwright
When RUNNING_FROM_PYNT=true(set automatically by Pynt CLI, you will need to export it for Pynt Binary) you should configure the browser to route traffic through Pyntβs proxy with the following configuration:
And ignore TLS errors :
Here's a Java Script example with all configurations:
Example: Running Pynt against DVWA
DVWA (Damn Vulnerable Web Application) is a good demo target for Pynt + Playwright integration.
This example shows how to setup DVWA and run a short playwright test with Pynt to find the MySQL Injection vulnerability
Run DVWA locally via Docker:
Download DVWA Playwright files:
test.js - the test script
Setup:
Run Pynt:
The scan should look like this:

Understanding the Results
Once your test finishes, Pynt will scan all APIs it observed during the Playwright test session. The results Will look like this:

π¬ Need Help?
For further assistance, visit the Pynt CLI Troubleshooting Guide or ask the community on Pynt Community Support.
Last updated