Skip to content

Commit

Permalink
WEBUI-1446: CSP headers without the insecure unsafe-inline
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Feb 23, 2024
1 parent e772d8a commit b3dbe12
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />

<!-- Content security policy (needs Nuxeo.UI.config.expressions.eval = false) -->
<!-- meta http-equiv="Content-Security-Policy" content="img-src data: blob: *; default-src blob: *; script-src data: * 'nonce-dummy'; style-src 'unsafe-inline' *; font-src data: *" -->
<meta
http-equiv="Content-Security-Policy"
content="img-src data: blob: *; default-src blob: *; script-src data: * 'nonce-dummy'; style-src 'unsafe-inline' *; font-src data: *"
/>

<link rel="stylesheet" type="text/css" href="index.css" />
</head>
Expand Down Expand Up @@ -116,7 +119,7 @@
],
blob: ['appLinks', 'preview'],
},
// expressions: { eval: false },
expressions: { eval: false },
dateFormat: 'LL',
dateTimeFormat: 'LLL',
firstDayOfWeek: '',
Expand Down

0 comments on commit b3dbe12

Please sign in to comment.