Questions tagged [lightning-container]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
158 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 ...
user avatar
  • 1
2 votes
1 answer
92 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 ...
user avatar
4 votes
0 answers
54 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 ...
user avatar
  • 2,232
3 votes
0 answers
89 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 ...
user avatar
1 vote
1 answer
92 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: ...
user avatar
5 votes
1 answer
406 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 ...
user avatar
1 vote
0 answers
59 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 ...
user avatar
2 votes
0 answers
191 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 ...
user avatar
2 votes
1 answer
162 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 ...
user avatar
  • 304
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
171 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 ...
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="{...
user avatar
  • 2,339
5 votes
0 answers
534 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 ...
user avatar
6 votes
1 answer
7k 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 ...
user avatar
  • 415
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 ...
user avatar
  • 13.3k
0 votes
1 answer
252 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 ...
user avatar
4 votes
1 answer
851 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 ...
user avatar
  • 143
1 vote
1 answer
909 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 ...
user avatar
1 vote
1 answer
356 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 ...
user avatar
1 vote
0 answers
84 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 ...
user avatar
6 votes
1 answer
233 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 ...
user avatar
  • 9,516
3 votes
1 answer
1k views

Lightning Container fails to load content

I was trying my hands on lightning:container. I created a normal html page and tried inside lightning:container. Code: home.html uploaded as static resource named home <html> <head> ...
user avatar
0 votes
2 answers
517 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', ...
user avatar
3 votes
1 answer
721 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="{! $...
user avatar
2 votes
3 answers
5k 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">...
user avatar
0 votes
2 answers
4k 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....
user avatar
2 votes
0 answers
114 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 (...
user avatar
  • 21
1 vote
0 answers
370 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://...
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 ...
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" ...
user avatar
  • 1,862
1 vote
1 answer
586 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: ...
user avatar