Whitelist Tags, Tag Attributes, and Text Patterns
Calyx RIM enables you to add tags, tag attributes, and text patterns to the whitelist.
To specify the tag attributes and text patterns in the whitelist:
- On the Application Server, find the securityConfiguration.xml file in the following location: <Installation drive>:\InSightManager\server\all\conf\insight\securityConfiguration.xml
- Open this file in a text editor.
- To add tags, locate the section <property name="allowedTags">
-
Add
<value></value> to the list of tags and replace
new tag with the value of the tag you want to add. Repeat this step to add more tags.
<property name="allowedTags"> <list> <value>b</value> <value>new tag</value> </list> </property> - To add tag attributes, locate the section <property name="allowedTagAttributes>
- Locate the list that corresponds to the tag to which you want to add the tag attributes.
-
Add
<value>new tag attribute</value> to the list of tag attributes and replace
new tag attribute with the value of the tag attribute you want to add. Repeat this step to add more tag attributes.
<property name="allowedTagAttributes"> <map> <entry> <key> <value>div</value> </key> <list> <value>title</value> <value>style</value> <value>new tag attribute</value> </list> </entry> </map> </property> - To add text patterns, locate the section <property name="allowedTextPatterns>
-
Add
<value>new text pattern</value> to the list of text patterns and replace
new text pattern with the value of the text pattern you want to add. Repeat this step to add more text patterns.
<property name="allowedTextPatterns"> <list> <value>onclick</value> <value>onmouseover</value> <value>document.cookie</value> <value>window.open</value> <value>new text pattern</value> </list> </property> - Save and close the securityConfiguration.xml file.
- Restart the Application Server.