Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Configuring a content security policy in Cosmos React applications

Updated on March 15, 2022

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.

  1. In the header of Dev Studio, click the name of the application, and then click Definition.
  2. On the Security tab, in the Content security section, in the Policy name field, enter pxDefaultReact.
  3. Edit the CSP:
    1. Next to the Policy name field, click the Target icon.
    2. On the pxDefaultReact rule form, adjust the policy settings.
      For more information, see Configuring a setting.
    3. In the Allowed websites section, provide the URL for your static content service.
    4. On the rule form, click Save.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us