Hi,
I have stumbled upon quite peculiar behavior when using ZAP. I have the following setup:
- ZAP running in GUI mode and listening on port 8081
- imported OpenAPI definition of API, which is the subject of the test
- QA tests proxied through ZAP
All HTTP requests are sent to the endpoint where HTTPS is enabled. When I start automated tests, everything is okay because the ZAP proxy receives HTTPS request and sends it to their final destination. But after some time, ZAP sees HTTPS requests as HTTP requests and proxies them that way. There are no enabled scripts that may change HTTPS requests to HTTP requests. Even if I try a manual HTTPS request using Postman, ZAP changes it to HTTP. Have anyone experienced this strange behavior, and what may remedy this situation?