Version
1.56
Steps to reproduce
After upgrading Playwright from 1.55 → 1.56, several UI tests started failing.
In Playwright 1.55, the browser automatically included the Origin header in network requests, which matched our backend CORS configuration.
Starting from 1.56, this header is no longer sent — as a result, the backend now rejects the requests (CORS preflight fails, or the request is treated as unauthenticated).
Expected behavior
The Origin header should be preserved in requests, or at least there should be a configuration option to enable/disable this behavior.
Actual behavior
Requests no longer include Origin ( and also
sec-fetch-mode: cors
sec-fetch-site: cross-site )
, causing the backend to block or reject them.
Additional context
request headers are missed:
Origin
sec-fetch-mode: cors
sec-fetch-site: cross-site
Environment
OS: MacOS
Playwright: "@playwright/test": "1.56.0"
Version
1.56
Steps to reproduce
After upgrading Playwright from 1.55 → 1.56, several UI tests started failing.
In Playwright 1.55, the browser automatically included the Origin header in network requests, which matched our backend CORS configuration.
Starting from 1.56, this header is no longer sent — as a result, the backend now rejects the requests (CORS preflight fails, or the request is treated as unauthenticated).
Expected behavior
The Origin header should be preserved in requests, or at least there should be a configuration option to enable/disable this behavior.
Actual behavior
Requests no longer include Origin ( and also
sec-fetch-mode: cors
sec-fetch-site: cross-site )
, causing the backend to block or reject them.
Additional context
request headers are missed:
Environment