dev proxy: strip CSP header
This commit is contained in:
parent
05a29c2287
commit
31287c8899
|
@ -47,9 +47,13 @@ skulk({
|
||||||
},
|
},
|
||||||
servers: {
|
servers: {
|
||||||
express: {
|
express: {
|
||||||
proxy: "http://127.0.0.1:8081",
|
proxy: {
|
||||||
assets: "/assets"
|
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: {
|
bundles: {
|
||||||
frontend: {
|
frontend: {
|
||||||
|
|
Loading…
Reference in New Issue