Technical instruction - Add http response header on IIS
Run IIS and click on default website. On right hand site double click to http response header.
Click add to add a http header.
add the name in the name field and add value in the value filed.
<add name="X-Frame-Options" value="SAMEORIGIN" /> <add name="X-Content-Type-Options" value="nosniff" /> <add name="Referrer-Policy" value="no-referrer-when-downgrade" /> <add name="Strict-Transport-Security" value="max-age=31536000; includeSubDomains; preload" /> <add name="Permissions-Policy" value="geolocation=(*)" /> <add name="Cross-Origin-Embedder-Policy" value="require-corp" /> <add name="Cross-Origin-Opener-Policy" value="same-origin" /> IF customer has strict policy: <add name"Content-Security-Policy" value"default-src 'self'; font-src 'self'; img-src 'self' data:; script-src 'self' https://www.googletagmanager.com https://www.google-analytics.com https://*.adyen.com; style-src 'self' https://*.adyen.com;" /> IF customer does not have strict policy: <add name"Content-Security-Policy" value" default-src *; font-src 'self' 'unsafe-inline';img-src * data:; script-src 'self' https://www.googletagmanager.com https://www.google-analytics.com https://*.adyen.com 'unsafe-inline' ; style-src 'self' https://*.adyen.com 'unsafe-inline';" />
Depending on version the same headers may exist in AssertWeb\web.config.
Settings must then be removed from this lower level web.config for system to start.
Example:
(For even stricter IIS settings remove X-Powered-By field from the response headers to not expose server details, see below for instructions)
Save and restart IIS. Remember to comment out any header set in AssertWeb\web.config.
Remove the server header information
1. Remove the server header
Open IIS Manager.
Select the server node in the Connections pane.
Double-click Configuration Editor.
In the Section dropdown, select:
system.webServer/security/requestFiltering
.Set
removeServerHeader
to True.Click Apply and restart IIS.
2. Remove the X-AspNet-Version
Header
Using IIS Manager:
Open IIS Manager.
Select the site or application.
Double-click Configuration Editor.
In the Section dropdown, select:
system.web/httpRuntime
.Set
enableVersionHeader
to False.Click Apply and restart IIS.
4. Remove the X-Powered-By
Header
Using IIS Manager:
Open Configuration Editor.
In the Section dropdown, select:
system.webServer/httpProtocol/customHeaders
.If the rule already exist: click on the customeheaders:
remove the current value and leave it empty:
If the rule does not exist: Add a rule to remove the header:
Name:
X-Powered-By
Value: Leave empty
Click Apply and restart IIS.