Closed smckee-r7 closed 2 years ago
Additionally OPTIONS
requests are missing from the output har file but if you output the har from the browser it contains the options requests.
It was fixed by https://github.com/microsoft/playwright/pull/17027, you should update to Playwright v1.26.0+
It was fixed by #17027, you should update to Playwright v1.26.0+
@yury-s OPTIONS
requests are still missing on v1.26.1
EDIT: I can open a separate issue if required.
@yury-s that's perfect, thanks for that! I have found & opened another related issue that doesn't appear to be fixed yet #17802. If you get to chance to look over it that'd be great
Context:
Code Snippet
Describe the bug The har data that's recorded in
harFile.har
matches the original request information(before page.route() injects a header) rather than the actual network request traffic and therefore doesn’t contain the injected header. I would have thought that the HAR data should match the actual network requests and what the server would see?Another example would be, when using page.route to change the request method type from GET to POST. Playwrights HAR file would incorrectly say it was a GET request when the server actually received a POST request.