litespeedtech / openlitespeed

Our high-performance, lightweight, open source HTTP server
https://openlitespeed.org
GNU General Public License v3.0
1.14k stars 187 forks source link

Headers: CSP Headers and Security Headers #248

Open MaximKing1 opened 3 years ago

MaximKing1 commented 3 years ago

Im using OpenLiteSpeed Latest Install, but i use a solution called Sqreen for Security and CSP Headers but for some reason non of the headers are being set... The Virtual Host points to a External App which points to a PORT, the App isnt setting any headers and ive checked using Sqreen and headers arnt being set... What are the default headers for OpenLiteSpeed and how to change them?

Code-Egg commented 3 years ago

You can add custom headers by the OpenLiteSpeed context method, https://openlitespeed.org/kb/setting-up-cors-on-openlitespeed/