Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fb710a commit e68923fCopy full SHA for e68923f
site/site.go
@@ -251,6 +251,7 @@ const (
251
CSPDirectiveFormAction = "form-action"
252
CSPDirectiveMediaSrc = "media-src"
253
CSPFrameAncestors = "frame-ancestors"
254
+ CSPDirectiveWorkerSrc = "worker-src"
255
)
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
285
CSPDirectiveReportURI: {"/api/v2/csp/reports"},
286
CSPFrameAncestors: {"'none'"},
287
+ // worker for loading the .tar files on FE using js-untar
288
+ CSPDirectiveWorkerSrc: {"'self' blob:"},
289
290
// Only scripts can manipulate the dom. This prevents someone from
291
// naming themselves something like '<svg onload="alert(/cross-site-scripting/)" />'.
0 commit comments