Results 1 to 2 of 2

Thread: Custom Headers

  1. #1
    Join Date
    Dec 2018
    Posts
    4

    Question Custom Headers

    Hi,

    I want to implent global http headers on directadmin + Litespeed + lsphp

    Code:
    * Header always set Content-Security-Policy "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
    * Header always set X-Frame-Options "SAMEORIGIN"
    * Header always set X-Xss-Protection "1; mode=block"
    * Header always set X-Content-Type-Options "nosniff"

    Any idea how to do this correctly without removing this after updating stuff?

    Kind regards.
    Bart

  2. #2
    Join Date
    Dec 2018
    Posts
    4

    Thumbs up Solved

    Quote Originally Posted by bdevroey View Post
    Hi,

    I want to implent global http headers on directadmin + Litespeed + lsphp

    Code:
    * Header always set Content-Security-Policy "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
    * Header always set X-Frame-Options "SAMEORIGIN"
    * Header always set X-Xss-Protection "1; mode=block"
    * Header always set X-Content-Type-Options "nosniff"

    Any idea how to do this correctly without removing this after updating stuff?

    Kind regards.
    Bart

    Just minutes before your answer i found what the problem was.
    Include httpd conf option was turned off in litespeedadmin

    it's working fine now!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •