You need to sign in to do that
Don't have an account?
aayush kumar 11
lightning container can't access custom application in static resource - 403 Forbidden
I have a custom app that I uploaded as a static resource. I have tested that it works if I navigate directly to it.
The problem is when I use that URL in a lightning container in a component. When I checked network traffic, I found that
The problem is when I use that URL in a lightning container in a component. When I checked network traffic, I found that
- instead of https://my-dev-ed.lightning.force.com/resource/myapp/default.html there is a request to https://my-dev-ed--c.container.lightning.com/lcc/myapp/default.html
- The response to this request is 403 Forbidden
You should try like this. Replace Resource Name: with your Static Resource Name.
Your static resource file hierarchy should look like :
-> myapp
-> default.html
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/container_example_realty.htm (http://<lightning:container aura:id="ReactApp" aura:id="myapp" src="{!$Resource.ResourceName+ '/myapp/default.html" />)