Files
i2p.i2p/apps/i2ptunnel/resources/proxy/encp-header.ht
zzz 10c249ff6e i2ptunnel: Force CSS load before render on proxy error pages
to prevent "FOUC" https://dev.to/fbnlsr/how-to-get-rid-of-the-flash-of-unstyled-content-5e7
as recommended by drzed.

Not supported by firefox: https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/link
May followup with a different or more elaborate solution later, perhaps borrowed from plus.
2025-04-24 13:06:16 -04:00

30 lines
1.8 KiB
Plaintext

HTTP/1.1 403 Incompatible Encryption Options
Content-Type: text/html; charset=UTF-8
Cache-Control: no-cache
Connection: close
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: no-referrer
Content-Security-Policy: default-src 'none'; style-src 'self' 'unsafe-inline' http://proxy.i2p; form-action 'self' http://proxy.i2p; frame-ancestors 'self' http://127.0.0.1:7657/; img-src http://proxy.i2p
<!DOCTYPE html>
<html><head>
<title>_("Outproxy Unreachable")</title>
<link rel="shortcut icon" href="http://proxy.i2p/themes/console/images/favicon.ico">
<link blocking="render" href="http://proxy.i2p/themes/console/default/proxy.css" rel="stylesheet" type="text/css">
</head>
<body>
<div class="logo">
<a href="http://127.0.0.1:7657/" title="_("Router Console")"><img src="http://proxy.i2p/themes/console/images/i2plogo.png" alt="_("I2P Router Console")" border="0"></a><hr>
<a href="http://127.0.0.1:7657/config">_("Configuration")</a> <a href="http://127.0.0.1:7657/help">_("Help")</a> <a href="http://127.0.0.1:7657/dns">_("Addressbook")</a>
</div>
<div class="warning" id="warning">
<h3>_("Outproxy Unreachable")</h3>
<p>
_("The HTTP outproxy was not reachable, because it uses encryption options that are not supported by your I2P or Java version.")
<span>_("You may want to {0}retry{1} as this will randomly reselect an outproxy from the pool you have defined {2}here{3} (if you have more than one configured).", "<a href=\"\">", "</a>", "<a href=\"http://127.0.0.1:7657/i2ptunnelmgr\">", "</a>")</span>
_("If you continue to have trouble you may want to edit your outproxy list {0}here{1}.", "<a href=\"http://127.0.0.1:7657/i2ptunnelmgr/edit?tunnel=0\">", "</a>")
</p>
<hr><span><b>_("Could not find the following destination:")</b>
</span>