When a Post is triggred by the application, the access_token is correctly injected by the background service worker, but not other headers like Accept and Content-Type so I got Http 415 (unsupported media type) error message when the api is expecting to get application/json.
Versions
v4.0.0
Expected
Original request Headers are set in the POST request.
Actual
Only authorize header is set with the correct access_token
Issue and Steps to Reproduce
When a Post is triggred by the application, the access_token is correctly injected by the background service worker, but not other headers like Accept and Content-Type so I got Http 415 (unsupported media type) error message when the api is expecting to get application/json.
Versions
v4.0.0
Expected
Original request Headers are set in the POST request.
Actual
Only authorize header is set with the correct access_token
Additional Details
Tested on Edge 98
Packages :
"@axa-fr/react-oidc-context": "^4.0.0-beta.9", "react": "^17.0.2", "react-dom": "^17.0.2", "react-router": "6.2.1", "react-router-dom": "6.2.1",