2

I was expecting that upon a package installation when deploying a scratch org that the Remote site settings and/or CSP trusted sites would be deployed, however, this does not seem to be the case. The sites are added, however, don't seem to be active and I have to manually activate them.  Currently, my workaround is to actually include the remoteSiteSettings and cspTrustedSites alongside their corresponding metadata, however, in the scratch org, I find myself with duplicate metadata (the settings i deploy being active, and the ones installed from the package inactive) enter image description here Normally, if I would install the package in any org, the site settings would be deployed and active after a successful package installation.

Is this the expected behavior when deploying managed packages in scratch orgs? if so, is there any other way of ensuring that CSP and remote site settings are deployed and active without having to add them in the metadata or activating manually?

1 Answer 1

0

In the installedpackages meta xml file, have to specify:

<activateRSS>true</activateRSS >

this ensures that CSP and Remote site sttings be activated when the pakage is installed when pushing to the scrathc org.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .