Stack Exchange Network

Stack Exchange network consists of 174 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

The tag has no usage guidance.

0
votes
0answers
24 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
0answers
86 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
34 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 ...
5
votes
0answers
56 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 ...
2
votes
1answer
249 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
122 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
169 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
303 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
340 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
34 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 (...
0
votes
0answers
179 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
690 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
2k 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
237 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: ...