开发者

Applet JAR loading fails, since the http request doesn't include a basic auth header

开发者 https://www.devze.com 2022-12-18 16:18 出处:网络
It\'s a farily simple setup. A .jar is hosted on a site which is p开发者_C百科rotected by basic auth. I try to load the jar with an object tag - which works perfectly when tested without authenticatio

It's a farily simple setup. A .jar is hosted on a site which is p开发者_C百科rotected by basic auth. I try to load the jar with an object tag - which works perfectly when tested without authentication.

When the .jar is requested from the server, the basic auth header isn't included in the request. Why is this?


My guess is that the JVM itself is making the HTTP request and not using the browser's HTTP stack to do so.

There's at least one other question here at SO asking the same question but instead of "the basic auth header" being missing, it's "the user's cookies".

Only Sun could really fix that.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号