Skip to content

Commit abde80f

Browse files
CSP
1 parent 59e02b7 commit abde80f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

EssentialCSharp.Web/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,9 @@ await context.HttpContext.Response.WriteAsync(
397397

398398
string csp = string.Join("; ",
399399
$"default-src 'self'",
400-
$"script-src 'self' 'unsafe-inline' cdn.jsdelivr.net esm.sh www.clarity.ms www.googletagmanager.com https://hcaptcha.com https://*.hcaptcha.com{tryDotNetSources}",
400+
$"script-src 'self' 'unsafe-inline' 'unsafe-eval' blob: cdn.jsdelivr.net esm.sh www.clarity.ms www.googletagmanager.com https://hcaptcha.com https://*.hcaptcha.com{tryDotNetSources}",
401401
$"style-src 'self' 'unsafe-inline' cdn.jsdelivr.net cdnjs.cloudflare.com fonts.googleapis.com https://hcaptcha.com https://*.hcaptcha.com",
402-
$"font-src 'self' fonts.gstatic.com cdnjs.cloudflare.com",
402+
$"font-src 'self' fonts.gstatic.com cdnjs.cloudflare.com cdn.jsdelivr.net",
403403
$"img-src 'self' data: https:",
404404
$"connect-src 'self' https://hcaptcha.com https://*.hcaptcha.com https://api.pwnedpasswords.com https://*.algolia.net https://*.algolianet.com https://*.google-analytics.com https://*.clarity.ms{tryDotNetSources}",
405405
$"frame-src https://hcaptcha.com https://*.hcaptcha.com https://newassets.hcaptcha.com{tryDotNetSources}",

0 commit comments

Comments
 (0)