fix: Umami CSP with url including port, closes #8371

This commit is contained in:
Tom Moor
2025-02-12 23:23:31 -05:00
parent 854fbca420
commit ac48767132
+1 -1
View File
@@ -76,7 +76,7 @@ export const renderApp = async (
const csp = ctx.response.get("Content-Security-Policy");
ctx.set(
"Content-Security-Policy",
csp.replace("script-src", `script-src ${parsed.hostname}`)
csp.replace("script-src", `script-src ${parsed.host}`)
);
}
});