mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 11:46:40 +00:00
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 a new issue