I am importing a react component from static resource in lightning container, that component itself communicates with AWS. When I load this component in lightning:container, I am getting below errors: enter image description here

Code of my aura app:

<aura:application access="GLOBAL">   
    <lightning:container aura:id="jsApp" src="{!$Resource.abc + '/index.html'}" onmessage="{!c.handleMessage}"

The endpoint to which it communicates is already added in CSP list with connect src as true and also in Trusted sites under session settings.


1 Answer 1


This issue is resolved by some cleanup steps in the org:

  1. Deselected unneeded directives for existing trusted sites.
  2. Removed all unused trusted sites for these contexts.

You must log in to answer this question.

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