JSON content types
To add a JSON content type pattern by using the command line interface
-
add appfw JSONContentType <JSONContenttypevalue> [-isRegex ( REGEX | NOTREGEX )] -
save ns config
Example
add appfw JSONContentType ".*/json" -isRegex REGEX
To configure the JSON content type list by using the GUI
-
Navigate to Security > Application Firewall.
-
In the details pane, under Settings, click Manage JSON Content Types.
-
In the Manage JSON Content Types dialog box, do one of the following:
-
To add a new JSON content type, click Add.
-
To modify an existing JSON content type, select that type and then click Edit. The Configure Web App Firewall JSON Content Type dialog appears. Note: If you select an existing JSON content type pattern and then click Add, the dialog box displays the information for that JSON content type pattern. You can modify that information to create your new JSON content type pattern.
-
-
In the dialog box, fill out the elements. They are:
-
IsRegex. Select or clear to enable PCRE-format regular expressions in the form field name.
-
JSON Content Type Enter a literal string or PCRE-format regular expression that matches the JSON content type pattern that you want to add.
-
-
Click Create or OK.
-
To remove a JSON content type pattern from the list, select it, then click Remove to remove it, and then click OK to confirm your choice.
-
When you have finished adding and removing XML content type patterns, click Close.