umputun / remark42

comment engine
https://remark42.com
MIT License
4.9k stars 381 forks source link

Add Content-Security-Policy and Permissions-Policy headers #1805

Closed paskal closed 1 week ago

paskal commented 2 months ago

This is a security change. The policies I've added are not ideal but an improvement over lack of policies, and were tested by me for a few months to verify their work.

Content-Security-Policy now restricts resource loading and execution to enhance security:

Permissions-Policy now restricts the use of certain browser features which we don't use to enhance user privacy and security:

github-actions[bot] commented 2 months ago

Pull Request Test Coverage Report for Build 10239559906

Details


Changes Missing Coverage Covered Lines Changed/Added Lines %
backend/app/rest/api/rest.go 9 11 81.82%
<!-- Total: 10 12 83.33% -->
Totals Coverage Status
Change from base Build 10172404701: 0.03%
Covered Lines: 5994
Relevant Lines: 7062

💛 - Coveralls