mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix /logs in dev env (#17933)
The space character was missing in CSP between `_lr` and `logs` urls.
This commit is contained in:
parent
ef505c0b73
commit
2a1de963ac
@ -329,7 +329,7 @@ async function handleRequest(proxy, baseURL, req, res) {
|
|||||||
|
|
||||||
const newCSP = csp
|
const newCSP = csp
|
||||||
.replaceAll(proxy, `http://${originalHost}`)
|
.replaceAll(proxy, `http://${originalHost}`)
|
||||||
.replaceAll("script-src ", `script-src ${emberCliAdditions}`);
|
.replaceAll("script-src ", `script-src ${emberCliAdditions} `);
|
||||||
|
|
||||||
res.set("content-security-policy", newCSP);
|
res.set("content-security-policy", newCSP);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user