Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [lightning-container]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
204 views

Cannot find a way to know if iframe loaded html correctly on a lightning:container

We are trying to build a React application that loads inside a lightning:container. Since there is an issue where sometimes you might hit a 403 Forbidden error if the page setup has more than 1 ...
Fede Martinez's user avatar
0 votes
2 answers
270 views

Container element with id not found in the lwc component template

I am trying to display this captcha thing on my UI but the container is null. It seems like the container element with the ID hcaptcha-container is not found in my component's template and I don't ...
LauraB's user avatar
  • 25
0 votes
1 answer
590 views

How to pass an updated parameter to a static resource (React App)?

I am currently using LCC npm module (Lightning Container) to make Apex calls in our React app. However, we are also exploring cutting out LCC altogether (the concern is that it has not been updated in ...
Nour's user avatar
  • 1
2 votes
1 answer
405 views

Passing Multiple Arguments to Remote Action using lightning-container NPM package

Does anyone know how to do this? I've tried just about everything, but can only successfully call an apex method that has a single parameter using LCC.callApex(...). The docs describe ...
no_stack_dub_sack's user avatar
4 votes
0 answers
74 views

AppExchange Apps - Security Concerns on embedding URLs with Encrypted Short Lived Access Tokens

We are working on an AppExchange App which integrates with external application at the UI Layer. External application (composite app) has different widgets which we can embed within AppExchange Aura ...
Ashish's user avatar
  • 2,370
3 votes
0 answers
248 views

lightning:container performance/security and why no alternative in LWC [closed]

Is there any specific reason as to why salesforce has not provided the equivalent of lightning:container in LWC ? Since lightning:container places the component in an iFrame, is it good to use it (in ...
steamyfire's user avatar
1 vote
1 answer
323 views

Getting content security policy error while loading react component in lightning:container

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: ...
Aniruddha's user avatar
5 votes
1 answer
1k views

Lightning Container + CSP issue in Spring '21

I have a React app loading into a lightning-container from a static resource in both sandbox and production environments. This app has been humming along happily for a year without security issues. As ...
Shawn Truesdell's user avatar
1 vote
0 answers
176 views

Communities Lightning Container Failed To Load

I have searched for a long time, in many places, to try and figure out why my custom VueJS app would not load in a lightning container for our customer community. Finally, after reviewing this ...
Zachary Christmas's user avatar
2 votes
0 answers
323 views

Adding multiple apex-controllers on a manifest.json file of a react app

I have a react app that is built and added as a static resource to a lighting component. This react app uses calls to apex (LCC.callApex) to get certain necessary data. For the app to be able to ...
Débora Esteves's user avatar
2 votes
1 answer
355 views

Lightning Container Component: Author Apex Permission: Managed Package

We have an aura component which uses third party javascript library to display an external component in custom tab. We have created admin persona(not system admin) for the application who accesses ...
Amit's user avatar
  • 354
3 votes
1 answer
3k views

Is there any Lightning Container Component for the Lightning Web Components framework?

I am about to kick start a project that's gonna make use of the Lightning Container in the Lightning Aura Framework. Q: Is there any LWC counterpart for this aura component? From the documentation ...
Endrit Sino's user avatar
0 votes
1 answer
283 views

Using script with Lightning Component

I am trying to create a twitter feed component for use in Salesforce communities and because I need to use the JS supplied by Twitter I am using a Lightning:container, however I cannon't seem to get ...
blindmouse's user avatar
1 vote
1 answer
1k views

CSP Issue when trying to bring in a React app to a lightning container

I have a simple aura component with a lightning container: <aura:component access="global" implements="flexipage:availableForAllPageTypes"> <lightning:container aura:id="ReactApp" src="{...
Tyler Dahle's user avatar
  • 2,709
5 votes
0 answers
855 views

Lightning Component Container 403 error

We've developed a lightning component which hosts a react app within a container. I've noticed that sometimes after pushing a change to it in a scratch org (i.e. updating the static resource which the ...
Simon Watson's user avatar
6 votes
1 answer
8k views

How to open LWC in a new page from Record Detail Aura Component

I have created a aura component which uses the @api recordId in order to query some data from the apex controller. It all works properly when using the aura component on the record detail page. The ...
Teodora's user avatar
  • 465
1 vote
1 answer
1k views

Solution to reuse containers to expose LWC to tabs for Classic app

I am considering to build a Classic app which should consist of 5 to 10 tabs, each one containing single LWC component (single different LWC component). I want to avoid code duplication and don't ...
Patlatus's user avatar
  • 17k
0 votes
1 answer
346 views

Making Ajax call to another domain from a react app rendered using lightning:container

I am making a custom lightning component in which i am rendering a React app using lightning:container. In that react app i have to make ajax calls to another domain api.xyz.com to fetch and update ...
ghostCoder's user avatar
4 votes
1 answer
1k views

What are the differences between a Lightning Container and a Canvas App?

Both lightning:container and Canvas Apps (which themselves can be embedded into Lightning components using force:canvasApp) seem to be doing similar things. Both of them allow you to embed external ...
Kidburla's user avatar
  • 143
1 vote
1 answer
1k views

Plugging React JS app into lightning community

I have created a react.js application where I have used SLDS for my styling and I have also installed Lightning container module to make direct API calls to APEX code in my org. I want to plug the ...
Shrikanth H M's user avatar
1 vote
1 answer
439 views

fullyQualifiedApexMethodName in callApex (lighting:container)

I'm using callApex method in lighting:container: LCC.callApex("lcc1.ApexController.getAccount", ... lcc1 - namespace ApexController - Cls getAccount - Method global with sharing class ...
Surya Chandra Rao Gandreddi's user avatar
1 vote
0 answers
88 views

lightning:container is not working in few testing orgs but working fine in others

lightning:container is not working in few testing orgs but working fine in others. Sometimes it just works after a day or so without me doing any changes. I get the following error, any suggestions on ...
Surya Chandra Rao Gandreddi's user avatar
6 votes
1 answer
274 views

Is it possible to call REST api from lightning:container

I'm seeing conflicting information: On one hand, the lightning:container docs state that you can use this npm package to get a REST Session Key. On the other hand, the spring 18 release notes say ...
NSjonas's user avatar
  • 10.2k
0 votes
2 answers
600 views

forcetk in lightning:container

forcetk in VisualForce Page - it works fine (below is the code). forcetkClient = new forcetk.Client(); forcetkClient.setSessionToken('{!$Api.Session_ID}'); forcetkClient.apexrest('/rest-api/get', ...
Surya Chandra Rao Gandreddi's user avatar
3 votes
1 answer
847 views

lightning:container - 404 not found

lightning:container gives 404 error, but iframe loads fine :( <lightning:container aura:id="Cont" src="{! $Resource.StaticResource1 + '/index.html'}" /> <iframe aura:id="Cont" src="{! $...
Surya Chandra Rao Gandreddi's user avatar
2 votes
3 answers
6k views

Content Security Policy (CSP) of lightning:container

I'm trying to add custom CSP as given in the link: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/container_csp.htm index.html <!DOCTYPE html> <html lang="en">...
Surya Chandra Rao Gandreddi's user avatar
0 votes
2 answers
5k views

Lighting:container - Refused to load the script 'https://www.youtube.com/iframe_api' because it violates the following Content Security Policy

The below is a React Component that I'm loading from lightning:container import React, { Component } from 'react'; import Plyr from 'plyr'; import '../node_modules/plyr/dist/plyr.css'; import './App....
Surya Chandra Rao Gandreddi's user avatar
2 votes
0 answers
176 views

Crypto sign string using DSA private key in Salesforce

Colleagues, I'm doing integration using REST API with a service that requires a string signed by private key which uses DSA algorithm. The problem is in APEX Crypto class does not support DSA keys (...
SlawekW's user avatar
  • 21
1 vote
0 answers
471 views

Enabling CSP unsafe-eval support on other origins

I'm trying to build a component utilising lightning:component (external build) which has a dependency that loads code on init via a script tag. Specifically I'm trying to load content from https://...
Ben Naylor's user avatar
3 votes
1 answer
1k views

Lightning Container refused to display in a frame because it set 'X-Frame-Options' to 'sameorigin' (2)

I'm reopening a question for that as it is not resolved (other link here) I'm still unable to display my Vue JS app in a lightning container. My app is loading from a static resource and I had no ...
Lucas Ennouchi's user avatar
5 votes
1 answer
4k views

Lightning container with external source

I would like to have an iframe in a Lightning component. I, first, tried to create a lightning:container as this: <aura:attribute name="url" type="String" ...
Simonp's user avatar
  • 1,892
1 vote
1 answer
682 views

lightning:container "Failed to load resource: too many HTTP redirects" in Safari, works fine in Chrome

I've a component which loads a html page from a static resource (which will have css & js files), the following is the code. It works fine in Chrome but doesn't load in Safari and throws an error: ...
Surya Chandra Rao Gandreddi's user avatar