[Feature]: ApiRequestContext: Add support for SSL Context
Opened this issue ยท 2 comments
๐ Feature Request
Allow the playwright api request make secure https requests. In our case that endpoint has https enabled and we need to provide the keystore/truststore credentials with the http request.
Example
In the config/setup of the playwright tests, the developer would provide paths the keystore/truststore. In the test code - the developer would config/inject the SSL Context details to the Transport interface implementation. The underlying calls would exchange the ssl details.
Motivation
Allows playwright api to be used to call https secured endpoints.
Related microsoft/playwright#1799
You can manage the connection yourself in Java
page.route("**/*", route -> { FulfillOptions responseData = customJavaRequest(route.request()); route.fulfill(responseData); });