We recently upgraded from Jira 9.12.15 LTS to Jira Data Center 10.3.2 and immediately noticed some issues which did not happen previous to the upgrade.
We are running a few tests that require basic authentication through the rest api.
After authenticating for the first time, we are storing locally the cookie with the JSESSION and the xsrf token.
When trying to make new requests with that cookie, we get response code 401 Unauthorized.
Upon checking the logs of the jira instance we noticed that in the span of a few milliseconds, the session is destroyed, hence why we get Unauthorized on the next request.
It's worth noting that previous to this upgrade, this mechanism was working perfectly fine, nothing has changed with it in a very long time.