1

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}"
            onerror="{!c.handleError}"/>
</aura:application>

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.

0

1 Answer 1

0

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.