Skip to main content
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-web-security]

Lightning Web Security (LWS) is the new generation of LWC client-side security that will replace Lightning Locker.

Filter by
Sorted by
Tagged with
0 votes
1 answer

CSRF Fix not working in LWC

Below is a dummy LWC component to update a Custom Object record field (Year__c) value. Dummylwc.html <template> <lightning-modal-header label="ANTI-CSRF TEST COMPONENT"><...
Brav's user avatar
  • 820
0 votes
1 answer

Is there a way to change the tel: and mailTo: links at the Contacts page using aura lightning component

I am trying to change the tel: and mailTo: links from the Salesforce contact page to some other behavior with onClick using aura lightning component. The expected behavior might be click on the phone ...
Liu Hantao's user avatar
2 votes
0 answers

Is it possible to debug JS loaded via loadScript when running under Lightning Web Security?

I'm trying to use a third-party JS tool (Fancybox in this case, but the specific tool isn't important) via loadScript in an LWC. I can see that it loads (the promise completes without error), but it ...
Jason Clark's user avatar
  • 11.9k
0 votes
1 answer

LWC Error: createClient is not defined when using Supabase JavaScript library

I am trying to use the Supabase JavaScript library in an LWC Documentation initializing supabase Supabase JavaScript library: supabase-js@2 Their example from the documentation: import { ...
Robs's user avatar
  • 9,366
0 votes
0 answers

{Symbol(@@lockerLiveValue) : undefined} when passing list between lightning web components

When passing a list from a parent to child component in LWC, I am getting errors when trying to access the list from within the child component. For example, pass a list containing just an ID ['id1'] ...
Matthew's user avatar
3 votes
1 answer

Reactive array of objects and "Use Lightning Web Security for Lightning Web Components"

I have a component that iterates through a property that is an array of objects. <template> <template for:each={widgets} for:item="widget"> <p key=""...
nstuyvesant's user avatar
5 votes
1 answer

How to use Javascript libraries with Lightning Web Security in Aura components

We are using the Leaflet Javascript library to add mapping to our application. Currently we have the following: <ltng:require styles="{!$Resource.Leaflet + '/leaflet.css'}" ...
fred's user avatar
  • 3,420
10 votes
2 answers

Debug Components in an Org With LWS Enabled - breakpoints not working

The new Lightning Web Security model that is set to overtake Lightning Locker is not working the way the SF docs explain. In short: I do not have an 'lws' folder. From When ...
bkwdesign's user avatar
  • 579
3 votes
0 answers

Formatting and color of values of objects logged in chrome devtools is unreadable in dark mode

After the Winter 23' release added Lightning Web Security I started having a problem viewing the values of JavaScript objects. Correct me if I'm wrong but to debug LWC in chrome devtools with LWS ...
Monakus's user avatar
  • 31
1 vote
0 answers

Cross namespace on Salesforce mobile app

I'm developing a LWC. As my component need to be used inside customer's pages, we need it to be cross namespace. Salesforce offers it with Lightning Web Security (LWS) enabled only. After enabling LWS,...
khoa_chung_89's user avatar
2 votes
1 answer

Mysterious error that happens when Lightning Web Security is turned on: Cannot read properties of undefined (reading 'copy')

Recently I wanted to release a new patch version of my package and I decided to check something on the testing trial production. To my great surprize, there was some error which I didn't remember in ...
Patlatus's user avatar
  • 17.1k
3 votes
1 answer

Impacts of Lightning Web Security on Cookie Usage

I reference B2B LEX but I believe this is not a problem specific to B2B LEX - I just want my use case to be kept in mind in case it's relevant. Our current implementation has a Salesforce Experience ...
Victor Lockwood's user avatar
3 votes
1 answer

Problems generating Blob from Uint8Array

Regularly, outside of LWC environment when I type the following code const a = new Uint8Array([95, 96, 97]); const b = new Blob([a], { type: 'application/octet-stream' }); b.text().then(out => ...
Guilherme Lopes's user avatar
1 vote
1 answer

Lightning Web Security - Apex response object manipulation - non backward compatible

When using Lightning Web Security architecture it seems like objects retrieved from Apex methods cannot be modified anymore. It affects backward compatibility when enabling this feature. Example: Lets ...
Jaka Krajnc's user avatar
12 votes
1 answer

What is Lightning Web Security (LWS)?

Salesforce has just announced a new Beta feature in the Winter ’22 release notes: Lightning Web Security. What is this exactly?
Alba Rivas's user avatar
  • 2,561