We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Everything works fine on playwright==1.27.1 But when updating playwright to 1.31.1 -- all "interception/modifying requests" methods stop working. like
playwright==1.27.1
1.31.1
def intercept(route: Route, request: Request): headers = { **request.headers, "sec-fetch-site": "same-origin", "sec-fetch-mode": "no-cors", "sec-fetch-dest": "script", ... } response = self.page.request.fetch(request, headers=headers) body = response.text() ... route.fulfill( response=response, body=body, headers=response.headers, ) self.page.route("*/init.js", intercept)
https://playwright.dev/python/docs/network#modify-requests
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Everything works fine on
playwright==1.27.1
But when updating playwright to
1.31.1
-- all "interception/modifying requests" methods stop working.like
https://playwright.dev/python/docs/network#modify-requests
The text was updated successfully, but these errors were encountered: