LiteSpeed Enterprise can use supported Apache-style header rules. OpenLiteSpeed has its own context controls, so identify the product before configuring it.
Enterprise: an allowed .htaccess file
On LiteSpeed Enterprise with Apache-compatible configuration, supported header directives can live in the site .htaccess file when the hosting setup permits them. Start with a small rule and inspect the public response.
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>This is not a complete CSP, CORS, or caching policy. Check existing application and hosting values before adding another owner.
OpenLiteSpeed: context header operations
Use the WebAdmin virtual-host context configuration for supported header operations. For an appropriate context, a small Header Operations example is:
set X-Content-Type-Options nosniff
set Referrer-Policy strict-origin-when-cross-originApply the server's save and restart procedure. Do not assume Enterprise .htaccess behavior is interchangeable with OpenLiteSpeed. If your plan does not expose WebAdmin, use provider-supported controls.
Verify application and cached responses
Confirm correct asset media types, PHP responses, redirects, and errors. A context aimed at static files does not prove that all dynamic responses have the same headers.
LSCache or another upstream cache may retain old output. Check its indicators and purge only after fixing the producing rule. Avoid copying legacy X-XSS-Protection settings or a blanket wildcard CORS policy from older examples.