Response Header Rule in xmlImport

Hi Guys,

I would like to create Response Header Rule in xmlImport file.

Can you please advise what attributes of the below tag should be used to specify the key value pair ‘x-frame-options’ ‘sameorigin’?


<CONTEXT alias="responseheaders.rule.folder">
		<wm_xt_portalrules unless="exists"
			name="Login Page Deny Non Same-Orgin Framing test" ruleText="portalResource isDescendant ('folder.customfolder')" 
			 isEnabled="false">

		</wm_xt_portalrules>
	</CONTEXT>

Kind regards,
Raj

The value of the rule goes in the targetURI attribute.

For example:

<CONTEXT alias="responseheaders.rule.folder">
	<wm_xt_portalrules unless="exists"
		name="Login Page Deny Non Same-Orgin Framing test" 
		ruleText="portalResource isDescendant ('folder.customfolder')" 
		isEnabled="false"
		targetURI="X-FRAME-OPTIONS=SAMEORIGIN"
		info="1" />
</CONTEXT>

Brilliant, Thanks Eric, it is working :slight_smile:

Kind regards,
Raj