Questions tagged [lightning-container]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
0answers
38 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 ...
0
votes
0answers
16 views

Using Lightning Container within LWC/Embedded Service?

I've been experimenting with the use of Lightning Containers within the embedded service. The necessary HTML is hosted as a SF static resource. However, when I point to it with the lightning container,...
1
vote
1answer
47 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: ...
4
votes
1answer
146 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 ...
1
vote
0answers
28 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 ...
2
votes
0answers
107 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 ...
1
vote
0answers
103 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 ...
1
vote
1answer
496 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 ...
0
votes
1answer
124 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 ...
1
vote
1answer
807 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="{...
5
votes
0answers
410 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 ...
5
votes
1answer
6k 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 ...
1
vote
1answer
994 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 ...
0
votes
1answer
164 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 ...
4
votes
1answer
671 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 ...
1
vote
1answer
776 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 ...
1
vote
1answer
321 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 ...
1
vote
0answers
79 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 ...
6
votes
1answer
201 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 ...
3
votes
1answer
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> ...
0
votes
2answers
459 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', ...
2
votes
1answer
643 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="{! $...
2
votes
3answers
4k 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">...
0
votes
2answers
3k 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....
2
votes
0answers
85 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 (...
1
vote
0answers
330 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://...
3
votes
1answer
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 ...
5
votes
1answer
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" ...
1
vote
1answer
506 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: ...