Skip to content

Commit 3e6973e

Browse files
committed
fix: backendEndPoint for csp block added
1 parent b71df40 commit 3e6973e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

webpack.common.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ module.exports = (publicPath = "auto") => {
270270
font-src ${authorizedFontSources.join(" ")};
271271
connect-src ${authorizedConnectSources.join(
272272
" "
273-
)} ${logEndpoint} ;
273+
)} ${logEndpoint} ${backendEndPoint};
274274
`,
275275
},
276276
},
@@ -291,7 +291,9 @@ module.exports = (publicPath = "auto") => {
291291
frame-src ${authorizedFrameSources.join(" ")};
292292
img-src ${authorizedImageSources.join(" ")};
293293
font-src ${authorizedFontSources.join(" ")};
294-
connect-src ${authorizedConnectSources.join(" ")} ${logEndpoint} ;
294+
connect-src ${authorizedConnectSources.join(
295+
" "
296+
)} ${logEndpoint} ${backendEndPoint};
295297
`,
296298
},
297299
},

0 commit comments

Comments
 (0)