[🐛 Bug]: Java, WebDriver not adding Content-Type header when doing calls from any browser towards backend #15530
Labels
A-needs-triaging
A Selenium member will evaluate this soon!
C-java
Java Bindings
I-defect
Something is not working as intended
What happened?
I am using following setup of chrome driver:
Later I am using this configured driver in the test as follwos:
Once there is a situation that browser is making call to backend as POST, PUT or PATCH there is no Content-Type header at all which is returning errors from backend. I can observe that my custom headers and many other default headers are available.
Dependencies:
I am attaching request headers from manual tests in Chrome browser as well request headers which are provided from driver managed chrome browser
Manual Chrome headers:

WebDriver managed Chrome headers:


How can we reproduce the issue?
Relevant log output
Operating System
Windows10
Selenium version
Java 21
What are the browser(s) and version(s) where you see this issue?
Chrome - 134
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 134.0.6998.165
Are you using Selenium Grid?
No
The text was updated successfully, but these errors were encountered: