Skip to content

Commit 052dd63

Browse files
authored
Opened up CSP more for image file conversion (#140)
E.g., converting from HEIC to JPEG requires this to be unblocked.
1 parent 2e13cf5 commit 052dd63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/nj/nj-helmet.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function njContentSecurityPolicy() {
1212
scriptSrc: [
1313
"'self'",
1414
"'unsafe-inline'", // LibreChat has inline scripts
15+
"'unsafe-eval'", // For LibreChat image conversion
1516
'https://*.googletagmanager.com',
1617
'https://*.g.doubleclick.net',
1718
'https://*.nj.gov',
@@ -38,6 +39,7 @@ function njContentSecurityPolicy() {
3839
'https://*.nj.gov',
3940
],
4041
frameSrc: ["'self'", 'https://www.googletagmanager.com'],
42+
workerSrc: ["'self'", 'blob:'],
4143
},
4244
});
4345
}

0 commit comments

Comments
 (0)