mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-24 11:12:11 +00:00
dev proxy: strip CSP header
This commit is contained in:
parent
05a29c2287
commit
31287c8899
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue