dev proxy: strip CSP header

This commit is contained in:
f0x 2024-11-05 22:35:07 +01:00
parent 05a29c2287
commit 31287c8899

View file

@ -47,9 +47,13 @@ skulk({
},
servers: {
express: {
proxy: "http://127.0.0.1:8081",
assets: "/assets"
}
proxy: {
target: "http://127.0.0.1:8081",
onProxyRes: (proxyRes) => {
// CSP header prevents react-devtools and redux-devtools extensions from working
delete proxyRes.headers['content-security-policy'];
},
},
},
bundles: {
frontend: {