File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,7 @@ const (
251
251
CSPDirectiveFormAction = "form-action"
252
252
CSPDirectiveMediaSrc = "media-src"
253
253
CSPFrameAncestors = "frame-ancestors"
254
+ CSPDirectiveWorkerSrc = "worker-src"
254
255
)
255
256
256
257
func cspHeaders (next http.Handler ) http.Handler {
@@ -283,6 +284,8 @@ func cspHeaders(next http.Handler) http.Handler {
283
284
// Report all violations back to the server to log
284
285
CSPDirectiveReportURI : {"/api/v2/csp/reports" },
285
286
CSPFrameAncestors : {"'none'" },
287
+ // worker for loading the .tar files on FE using js-untar
288
+ CSPDirectiveWorkerSrc : {"'self' blob:" },
286
289
287
290
// Only scripts can manipulate the dom. This prevents someone from
288
291
// naming themselves something like '<svg onload="alert(/cross-site-scripting/)" />'.
You can’t perform that action at this time.
0 commit comments