IIS server
To configure an Internet Information Services (IIS) server:
- On the OSCE server, open Command Prompt with administrative privilege.
- Execute the following command:
“C:\Windows\System32\inetsrv\appcmd.exe\" set config "OfficeScan" -section:httpProtocol "/+customHeaders.[name='X-Frame-Options',value='SAMEORIGIN']”
- Close the command window.
Apache server
To configure an Apache server:
- On the OSCE server, open the httpd.conf file in the PCCSRV\Apache2\conf directory.
- 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> - Save and close the httpd.conf file.
- Restart Apache2.2 service.