0

I’m running into a weird issue with lightning:container and could really use your insights. βš™οΈ The Setup: I built an Aura component using lightning:container to embed an external app (index.html from a static resource). Everything works perfectly when only one instance is added to a record page. The Problem: When I add multiple instances of the same component: βœ… First Load: All instances render fine. πŸ” Page Refresh (F5 or Cmd+R): All lightning:container iframes fail to load β€” each one throws a:403 Forbidden: https://.../MatrixRuntime/index.html?...
βœ… Workaround: A hard refresh (empty cache + reload) fixes it temporarily β€” but obviously not ideal. πŸ§ͺ Code Snippet:

<div aura:id="exampleContainer" style="{!v.height ? 'height: ' + v.height + 'px;' : 'height:95%'}"> <lightning:container aura:id="exampleContainer1" src="{!$Resource.exampleContainer+ '/index.html'}" onmessage="{!c.handleMessageFromLightningContainer}" /> </div> 

❓ Questions: Why does this only break on refresh (not initial load) with multiple instances? Could this be a known limitation or quirk of lightning:container? Appreciate any thoughts especially if you've hit this before πŸ™ Thanks in advance!

0

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.