fix: skip http:// health_url from https context to prevent mixed-content
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
670b4ea3d3
commit
35198f97e6
|
|
@ -37,11 +37,17 @@
|
||||||
--accent: #22D3EE;
|
--accent: #22D3EE;
|
||||||
--accent-dim: rgba(34, 211, 238, 0.15);
|
--accent-dim: rgba(34, 211, 238, 0.15);
|
||||||
--bg: #0C1221;
|
--bg: #0C1221;
|
||||||
|
--surface: #111827;
|
||||||
|
--surface2: #1A2235;
|
||||||
|
--border: rgba(255,255,255,0.07);
|
||||||
}
|
}
|
||||||
[data-theme="light"] {
|
[data-theme="light"] {
|
||||||
--accent: #0891B2;
|
--accent: #0891B2;
|
||||||
--accent-dim: rgba(8, 145, 178, 0.1);
|
--accent-dim: rgba(8, 145, 178, 0.1);
|
||||||
--bg: #EFF6FF;
|
--bg: #EFF6FF;
|
||||||
|
--surface: rgba(255,255,255,0.85);
|
||||||
|
--surface2: rgba(255,255,255,0.6);
|
||||||
|
--border: rgba(0,0,0,0.07);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ── Node type colors ──────────────────────────────── */
|
/* ── Node type colors ──────────────────────────────── */
|
||||||
|
|
@ -2129,6 +2135,7 @@ async function runHealthCheckAll() {
|
||||||
|
|
||||||
if (node.health_url) {
|
if (node.health_url) {
|
||||||
// Rich health check — get metrics too
|
// Rich health check — get metrics too
|
||||||
|
if (location.protocol === 'https:' && node.health_url.startsWith('http:')) continue;
|
||||||
try {
|
try {
|
||||||
const ctrl = new AbortController();
|
const ctrl = new AbortController();
|
||||||
const timer = setTimeout(() => ctrl.abort(), 7000);
|
const timer = setTimeout(() => ctrl.abort(), 7000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue