Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit 3cdb63b

Browse files
committed
fix: add unpkg.com to CSP script-src for Lucide icons
1 parent 9458155 commit 3cdb63b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ app.use(helmet({
4444
contentSecurityPolicy: {
4545
directives: {
4646
defaultSrc: ["'self'"],
47-
scriptSrc: ["'self'", "'unsafe-inline'", "'unsafe-eval'", "https://cdn.jsdelivr.net"],
47+
scriptSrc: ["'self'", "'unsafe-inline'", "'unsafe-eval'", "https://cdn.jsdelivr.net", "https://unpkg.com"],
4848
scriptSrcAttr: ["'unsafe-inline'"],
4949
styleSrc: ["'self'", "'unsafe-inline'", "https://fonts.googleapis.com", "https://cdn.jsdelivr.net"],
5050
fontSrc: ["'self'", "https://fonts.gstatic.com", "https://cdn.jsdelivr.net"],

0 commit comments

Comments
 (0)