My FNZ Studio Version

Development Resources

Latest Update: 11.10.2022 | Margherita Taffarel
Documentation
2024
2023
2022.2
2022.1
11
10

Our Platform protects its users against web attacks by giving special instructions to web browsers through HTTP response headers. This article describes the various HTTP headers set by our Platform in every response, and how they can be configured.

The HTTP response headers are:

  • Content-Security-Policy
  • X-Frame-Options
  • Strict-Transport-Security
  • X-Content-Type-Options
  • X-XSS-Protection
  • Referrer-Policy
  • Feature-Policy

Important! The HTTP response headers discussed in this article are supported from the following Platform versions:
  • Content-Security-Policy and X-Frame-Options – from Appway 6.2.3
  • Strict-Transport-Security, X-Content-Type-Options, and X-XSS-Protection – from Appway 9.1.4
  • Referrer-Policy and Feature-Policy – from Appway 9.1.5

1 Content-Security-Policy and X-Frame-Options

These two response headers are used to protect Platform users from "clickjacking" attacks. They prevent other websites from embedding an Appway page in an <iframe> element.

Starting from Appway 10, two configuration properties can be used to control the values of the HTTP response headers 'Content-Security-Policy' and 'X-Frame-Options'

  • nm.security.http.content-security-policy
  • nm.security.http.x-frame-options

Default configuration for such properties are:

nm.security.http.content-security-policy = frame-ancestors 'self'
nm.security.http.x-frame-options = SAMEORIGIN

For more information, see:

2 Strict-Transport-Security

This response header is used to protect users from "protocol downgrade" and "cookie hijacking" attacks. It instructs a web browser to always use an HTTPS/SSL connection when exchanging data with our Platform.

The header has the following default value:

Strict-Transport-Security: max-age=31536000

The configuration property nm.security.http.strict-transport-security can be used to change the header value, or to disable inclusion of this header in HTTP responses. The default value is max-age=31536000, which tells a web browser to cache this instruction for 1 year (=31536000 seconds). If the property value is set to an empty string, this header is not included in HTTP responses.

Default configuration:

nm.security.http.strict-transport-security = max-age=31536000

By default, this response header is set only if the Platform detects that the request has been sent over an HTTPS connection. Starting with version 10.0.3, the Platform can be forced to always set this header, even in responses to requests on non-HTTPS connections. This can be useful if the Platform is running behind a load balancer and the HTTPS connection is offloaded/terminated at the load balancer.

Default configuration:

nm.security.http.strict-transport-security.force = false

If this configuration property is set to true, the Platform will always set this header.

For more information, see:

3 X-Content-Type-Options

This response header is used to protect Platform users from "content sniffing" attacks. It instructs a web browser to not try to "guess" the type of content of a web resource by looking at the first bytes of this resource, but instead trust the information given in the Content-Type response header.

The header has the following default value:

X-Content-Type-Options: nosniff

The configuration property nm.security.http.x-content-type-options can be used to change the header value, or to disable inclusion of this header in HTTP responses. The default value is nosniff. If the property value is set to an empty string, this header is not included in HTTP responses.

Default configuration:

nm.security.http.x-content-type-options = nosniff

For more information, see:

4 X-XSS-Protection

This response header is used to protect Platform users from "cross-site scripting" (XSS) attacks. It instructs a web browser to enable its client-side XSS filter.

The header has the following default value:

X-XSS-Protection: 1; mode=block

The configuration property nm.security.http.x-xss-protection can be used to change the header value, or to disable inclusion of this header in HTTP responses. The default value is 1; mode=block, which tells a web browser to enable its XSS filter, and to block page rendering if an attack is detected. If the property value is set to an empty string, this header is not included in HTTP responses.

Default configuration:

nm.security.http.x-xss-protection = 1; mode=block

For more information, see:

5 Referrer-Policy

This response header is used to instruct web browsers how to handle Referer request headers.

The header has the following default value:

Referrer-Policy: same-origin

The configuration property nm.security.http.referrer-policy can be used to change the header value, or to disable inclusion of this header in HTTP responses. The default value is
same-origin, which tells a web browser to include a Referer header only in requests to the Platform. This prevents leakage of potentially sensitive information in Referer values when sending requests to other, external web sites. If the property value is set to an empty string, this header is not included in HTTP responses.

Default configuration:

nm.security.http.referrer-policy = same-origin

For more information, see Referrer-Policy (developer.mozilla.org).

6 Feature-Policy

This response header is used to instruct web browsers to enable or disable certain client-side features.

The header has the following default value:

Feature-Policy: geolocation 'none'; camera 'none'; microphone 'none';

The configuration property nm.security.http.feature-policy can be used to change the header value, or to disable inclusion of this header in HTTP responses. The default value is
geolocation 'none'; camera 'none'; microphone 'none';, which tells a web browser to disable geolocation, camera, and microphone by default. If the property value is set to an empty string, this header is not included in HTTP responses.

Default configuration:

nm.security.http.feature-policy = geolocation 'none'; camera 'none'; microphone 'none';

For more information, see Feature-Policy (developer.mozilla.org).
© 2026 Appway AG. All Rights Reserved