Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lightning-container]

The tag has no usage guidance.

3
votes
0answers
58 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 ...
4
votes
1answer
1k views

How to open LWC in a new page from Record Detail

I have created a LWC which uses the @api recordId in order to query some data from the apex controller. It all works properly when using the LWC on the record detail page. The problem is that I need ...
1
vote
1answer
225 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
38 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 ...
3
votes
1answer
189 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 ...
0
votes
0answers
15 views

Fail to show a vf page containing lightning component with lightning container in lightning experience

I am trying to load a lightning component on click of a list button from a list view in lightning experience. So for that, I have embedded lightning component in vf page. This custom lightning ...
1
vote
1answer
217 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
160 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
60 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
120 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
562 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
229 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
336 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
825 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
987 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
48 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
239 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://...
1
vote
1answer
880 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 ...
4
votes
1answer
3k 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
284 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: ...