-
-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(secureHeader): add CSP Report-Only mode support #3413
Conversation
describe.each([ | ||
{ cspSettingName: 'contentSecurityPolicy', cspHeaderName: 'Content-Security-Policy' }, | ||
{ | ||
cspSettingName: 'contentSecurityPolicyReportOnly', | ||
cspHeaderName: 'Content-Security-Policy-Report-Only', | ||
}, | ||
])('CSP Setting ($cspSettingName)', ({ cspSettingName, cspHeaderName }) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff is crazy... but the following just adds this loop and moves the X-powered-by test to the top.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3413 +/- ##
=======================================
Coverage 95.77% 95.78%
=======================================
Files 154 154
Lines 9312 9322 +10
Branches 2730 2756 +26
=======================================
+ Hits 8919 8929 +10
Misses 393 393 ☔ View full report in Codecov by Sentry. |
Hi @isoppp Thank you for the PR! @watany-dev Can you review this? |
Thank you, I think this option looks good. The implementation also seems promising. |
@watany-dev Thank you! @isoppp Looks good! I'll merge this later. Since it's a small change, it may be included in the next patch release. |
close #3412
The author should do the following, if applicable
bun run format:fix && bun run lint:fix
to format the code