luckyframework / lucky

A full-featured Crystal web framework that catches bugs for you, runs incredibly fast, and helps you write code that lasts.
https://luckyframework.org
MIT License
2.59k stars 156 forks source link

Missing Content-Security-Policy Header #1664

Closed bararchy closed 2 years ago

bararchy commented 2 years ago

Lucky is missing Content-Security-Policy header. Setting this header prevents a wide variety of attacks, including cross-site scripting and other cross-site injections.

Remedy: - Make sure to set this header to Content-Security-Policy: script-src 'self'. Resources: - https://wiki.owasp.org/index.php/OWASP_Secure_Headers_Project#csp

Found here: https://github.com/bararchy/lucky_sec_test/runs/5128943051?check_suite_focus=true#step:11:21