Add User-Agent to news page HTTP requests
Cloudflare, and some other MITM proxies consider the default Java HttpURLConnection from Java 1.8 to be an invalid, unsafe request and reject it. This leads to CF returning a 403 on request. This commit adds the same User-Agent that's applied to the other calls, so that those that front their SKMC launcher news page with Cloudflare can have successful page loads. |
---|
|
launcher/src/main/java/com/skcraft/launcher/swing/WebpagePanel.java |
---|