fix: allow any image source but disallow base64

This commit is contained in:
Elias Schneider
2025-10-03 11:50:39 +02:00
parent 507f9490fa
commit 22f4254932
4 changed files with 4 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ func (m *CspMiddleware) Add() gin.HandlerFunc {
"object-src 'none'; " +
"frame-ancestors 'none'; " +
"form-action 'self'; " +
"img-src 'self' data: blob:; " +
"img-src * blob:;" +
"font-src 'self'; " +
"style-src 'self' 'unsafe-inline'; " +
"script-src 'self' 'nonce-" + nonce + "'"