From ab903419d8834e312803a7277567f185fddfc40d Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 3 Feb 2025 16:24:36 +0100 Subject: [PATCH] add limitations --- docs/src/mock.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/mock.md b/docs/src/mock.md index f08749c37c..bf6f57a183 100644 --- a/docs/src/mock.md +++ b/docs/src/mock.md @@ -636,6 +636,14 @@ Note that this style of proxying, where the proxy URL is prepended to the reques This is because for HTTPS requests, a `CONNECT` proxy does not have access to the proxied traffic. That's great behaviour for a production proxy, but counteracts network interception! ::: +:::note +Known Limitations: + +1. The mocking proxy is experimental and subject to change. +2. The injected `x-playwright-proxy` header affects CORS and might turn [simple requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#simple_requests) into requests that require a preflight. +3. Requests on the server that were not made in response to a browser request, like those triggered by CRON job, won't be routed because they don't have access to the `x-playwright-proxy` header. +::: + ### Recipes * langs: js