Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9116 +/- ##
==========================================
+ Coverage 98.07% 98.93% +0.85%
==========================================
Files 1716 1716
Lines 72803 72808 +5
==========================================
+ Hits 71402 72031 +629
+ Misses 1401 777 -624 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| const app = express() | ||
|
|
||
| app.use(frameProtection) | ||
| app.use( |
There was a problem hiding this comment.
The tests were removed without replacement. Could we keep a separate middleware file so we can have unit test there with a mocked res.setHeader. i think it's cheap enough to make sure the headers are not dropped in case of config change
There was a problem hiding this comment.
I hope it's improved in bc17aa6. Thanks!
| }), | ||
| helmet.xFrameOptions({ action: 'deny' }), | ||
| helmet.xContentTypeOptions(), | ||
| helmet.referrerPolicy({ policy: 'same-origin' }), |
There was a problem hiding this comment.
Just a note that this is strict and we would lose the referer in analytics. If that's not acceptable, we could use strict-origin-when-cross-origin which keeps the origin without the full path
There was a problem hiding this comment.
Great catch! I was misled by bad LLM research. 2380915
dammit claude
Contributes to ENG-687.
Changes
X-Content-Type-Options: nosniffandReferrer-Policy: same-origin, plusContent-Security-Policy: frame-ancestors 'none'when the backend serves the dashboard.X-Powered-By.Review effort: 1/5