Skip to content

Commit e3f35cc

Browse files
fix: code highlighting and X / Twitter embeds (#41)
1 parent 384a99a commit e3f35cc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/config/helmet.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ export default {
66
"'self'",
77
"'unsafe-inline'",
88
'https://webembeds.com',
9+
'https://platform.twitter.com',
10+
'https://cdn.freecodecamp.org'
11+
],
12+
scriptSrcAttr: [
13+
"'self'",
14+
"'unsafe-inline'",
915
'https://cdn.freecodecamp.org'
1016
],
1117
styleSrc: [
@@ -40,6 +46,7 @@ export default {
4046
'https://codepen.io',
4147
'https://codesandbox.io',
4248
'https://twitter.com',
49+
'https://platform.twitter.com',
4350
'https://x.com',
4451
'https://gist.github.com',
4552
'https://glitch.com',

0 commit comments

Comments
 (0)