Configure security options with options.xml file?

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
Johann
Posts: 214
Joined: Wed Jun 17, 2015 12:46 pm

Configure security options with options.xml file?

Post by Johann »

Hello,

In Web Author 26.1 version, I have to change some security parameters in Administration page especially CSP:
image.png
image.png (79.5 KiB) Viewed 161 times
Is it possible to change these options directly in options.xml file or somewhere else in order not to have to do it "by hand"?

Thanks for your help,

Johann
cosminef
Site Admin
Posts: 126
Joined: Wed Aug 30, 2023 2:33 pm

Re: Configure security options with options.xml file?

Post by cosminef »

Hello,

Each CSP entry in the Web Author interface has a corresponding counterpart in the options.xml file
The order of these entries presented in options.xml corresponds to the order of CSP options in the Web Author interface (as shown in your screenshot):

Code: Select all

<entry>
	<String>csp.default.src</String>
	<String-array>
		<String>test1</String>
	</String-array>
</entry>

<entry>
	<String>csp.script.src</String>
	<String-array>
		<String>test2</String>
	</String-array>
</entry>

<entry>
	<String>csp.style.src</String>
	<String-array>
		<String>test3</String>
	</String-array>
</entry>

<entry>
	<String>csp.img.src</String>
	<String-array>
		<String>test4</String>
	</String-array>
</entry>

<entry>
	<String>csp.connect.src</String>
	<String-array>
		<String>test5</String>
	</String-array>
</entry>

<entry>
	<String>csp.font.src</String>
	<String-array>
		<String>test6</String>
	</String-array>
</entry>

<entry>
	<String>csp.object.src</String>
	<String-array>
		<String>test7</String>
	</String-array>
</entry>

<entry>
	<String>csp.media.src</String>
	<String-array>
		<String>test8</String>
	</String-array>
</entry>

<entry>
	<String>csp.frame.src</String>
	<String-array>
		<String>test9</String>
	</String-array>
</entry>

<entry>
	<String>csp.sandbox</String>
	<String-array>
		<String>test10</String>
	</String-array>
</entry>
Each line added in the dialog boxes in the Web Author interface corresponds to a <String> element in the options.xml file

Best,
Cosmin
Cosmin Eftenie
www.oxygenxml.com
Johann
Posts: 214
Joined: Wed Jun 17, 2015 12:46 pm

Re: Configure security options with options.xml file?

Post by Johann »

Thank you Cosmin!

Regards,

Johann
Post Reply