{/* Icon / image */}
{imageSrc ? (
-
(not next/image): tool SVGs are non-square (opencode
+ // 234×42, cursor 467×532) and next/image's dev check warns whenever the
+ // rendered aspect-ratio size differs from the square width/height
+ // attributes. object-contain + max caps keep the logo at its true ratio.
+ // eslint-disable-next-line @next/next/no-img-element -- local static SVG asset
+
) : (
{
assert.equal(isOriginAllowed("http://127.0.0.1:20128", EMPTY_ENV), true);
assert.equal(isOriginAllowed("http://localhost:20128", EMPTY_ENV), true);
assert.equal(isOriginAllowed("http://[::1]:20128", EMPTY_ENV), true);
+ // 0.0.0.0 is loopback-equivalent in the browser; the dashboard is often
+ // opened at http://0.0.0.0:20128, which sends exactly that Origin on WS.
+ assert.equal(isOriginAllowed("http://0.0.0.0:20128", EMPTY_ENV), true);
});
it("accepts an Origin matching LIVE_WS_ALLOWED_ORIGINS", () => {