I have a problem with a Java applet that I cannot get to send the correct cookie. The stream is as follows:

Without the crossdomain.xml file on port 80, the applet simply refuses to execute any CORS request at all, but with the help of the crossdomain file, requests come through BUT without any cookies. However, the client certificate is sent in the request.
It is also worth mentioning that JNLP is loaded from the same domain as the REST interface, which should allow Java to interact with this domain.
How can I get Java to make REST requests using cookies. The HTTP_ONLY or Secure flag is not enabled in the session cookie.
source share