Views:

IIS server

To configure an Internet Information Services (IIS) server:

  1. On the OSCE server, open Command Prompt with administrative privilege.
  2. Execute the following command:

    “C:\Windows\System32\inetsrv\appcmd.exe\" set config "OfficeScan" -section:httpProtocol "/+customHeaders.[name='X-Frame-Options',value='SAMEORIGIN']”

  3. Close the command window.

Apache server

To configure an Apache server:

  1. On the OSCE server, open the httpd.conf file in the PCCSRV\Apache2\conf directory.
  2. Add the following information into the httpd.conf file:

    #set up response header
    <IfModule mod_headers.c>
    Header always append X-Frame-Options SAMEORIGIN
    Header set Content-Security-Policy "default-src 'self'"
    </IfModule>

  3. Save and close the httpd.conf file.
  4. Restart Apache2.2 service.