Skip to content

Commit 25167d7

Browse files
Merge pull request #6600 from topcoder-platform/revert-6586-veterans-http-headers
Revert "remove unsafe-inline csp for veterans"
2 parents ee1f747 + 34ee528 commit 25167d7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ workflows:
355355
context : org-global
356356
filters:
357357
branches:
358-
only:
359-
- free
358+
only:
359+
- tco23
360360
# This is alternate dev env for parallel testing
361361
- "build-qa":
362362
context : org-global

src/server/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,10 @@ async function onExpressJsSetup(server) {
138138
res.header('Permissions-Policy', 'geolocation=(), microphone=(), camera=()');
139139

140140
if (req.url.startsWith('/__community__/veterans') || req.hostname === 'veterans.topcoder.com' || req.url.startsWith('/__community__/tco') || tcoPattern.test(req.hostname)) {
141-
res.header('Cache-Control', 'no-cache');
142141
res.header(
143142
'Content-Security-Policy',
144143
"default-src 'self';"
145-
+ " script-src 'report-sample' 'self'"
144+
+ " script-src 'report-sample' 'self' 'unsafe-inline' 'unsafe-eval'"
146145
+ ` ${config.CDN.PUBLIC}`
147146
+ ' http://www.google-analytics.com'
148147
+ ' https://www.google-analytics.com'

0 commit comments

Comments
 (0)