Java Web Start keeps asking to authenticate

后端 未结 2 1769
北荒
北荒 2021-01-14 10:48

I developed a Java Web Start app that lies on a web server based on HTTP security. Once I log in to the web-page for launching my Java Web Start application, the app is aski

2条回答
  •  悲&欢浪女
    2021-01-14 11:31

    Probably because the User-Agent HTTP request header is not the same.

    When you browse to your Web Start page, your browser sends a request to the HTTP server with User-Agent: whatever browser you are using

    When the JRE requests the JARs to be downloaded from the HTTP server, it sends a request with User-Agent: whatever java version you are using

    From the perspective of the HTTP server, these are 2 distinct clients and therefore you are prompted twice for credentials.

提交回复
热议问题