Configuring a content security policy in Cosmos React applications
Make your application more secure by controlling the sources from which your application loads resources. By using the out-of-the-box pxDefaultReact content security policy (CSP), you can protect your application with less effort.
- In the header of Dev Studio, click the name of the application, and then click Definition.
- On the Security tab, in the Content security section, in the Policy name field, enter pxDefaultReact.
- Edit the CSP:
- Next to the Policy name field, click the Target icon.
- On the pxDefaultReact rule form, adjust the
policy settings.For more information, see Configuring a setting.
- In the Allowed websites section, provide the URL
for your static content service.For more information, see Allowing a website as an exception to a content security policy directive.
- On the rule form, click Save.
Previous topic Securing your application with a content security policy Next topic Creating a content security policy