Section – Content Parsing

Content Parsing

UI

Description

Strip comments

If enabled, Airlock Gateway removes HTML comments. HTML comments often offer internal information. The option allows Airlock Gateway to remove such comments.

This feature is only available if either HTML Rewriting or URL Encryption is enabled.

JSON content type

An HTTP body is treated and parsed as a JSON object if the HTTP header Content-Type matches the specified RegEx pattern.

JSON Parser Path Exception Patterns

Airlock Gateway will not do JSON parsing on any incoming requests with an external URL path that matches one of these patterns.

Exception patterns are configured in a list of regular expressions.

Example:
The RegEx example ^/rest/api/broken-json$ adds the URL path /rest/api/broken-json as an exception not to use the JSON parser for this endpoint pattern. This means the request will not be blocked even if the JSON payload is broken.