Skip to content

Commit 08539bd

Browse files
author
Taranveer Bains
committed
chore: get rid of unsafe-inline
1 parent 05f58f0 commit 08539bd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

server/index.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,13 +135,13 @@ app.use(
135135
'https://cdn.syndication.twimg.com',
136136
(req, res) => `'nonce-${res.locals.cspNonce}'`,
137137
],
138-
'script-src-attr': [
139-
"'unsafe-inline'",
140-
// TODO: figure out how to make the nonce work instead of
141-
// unsafe-inline. I tried adding a nonce attribute where we're using
142-
// inline attributes, but that didn't work. I still got that it
143-
// violated the CSP.
144-
],
138+
// 'script-src-attr': [
139+
// "'unsafe-inline'",
140+
// // TODO: figure out how to make the nonce work instead of
141+
// // unsafe-inline. I tried adding a nonce attribute where we're using
142+
// // inline attributes, but that didn't work. I still got that it
143+
// // violated the CSP.
144+
// ],
145145
'upgrade-insecure-requests': null,
146146
},
147147
},

0 commit comments

Comments
 (0)