mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
fix: img-src annotation changes with zui move to vite (#3539)
https://github.com/project-zot/zui/pull/484 zui is moving to vite framework but there are some changes in the img-src annotations which must be allowed/accounted for in zot backend. Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
This commit is contained in:
committed by
GitHub
parent
a039260ed4
commit
1d0eadc013
@@ -50,7 +50,7 @@ func addUISecurityHeaders(h http.Handler) http.HandlerFunc { //nolint:varnamelen
|
||||
"style-src 'self' 'unsafe-inline'",
|
||||
"font-src 'self'",
|
||||
"connect-src 'self'",
|
||||
"img-src 'self'",
|
||||
"img-src 'self' data:",
|
||||
"manifest-src 'self'",
|
||||
"base-uri 'self'",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user