
Create an Analog Clock Lightning Web Component in Your Salesforce Org
In this blog post, we will explore how to build an Analog Clock Lightning Web Component (LWC) for Salesforce CRM.…

In this blog post, we will explore how to build an Analog Clock Lightning Web Component (LWC) for Salesforce CRM.…

Introduction Lightning Web Components (LWC) is a modern, open-source JavaScript framework developed by Salesforce. It empowers developers to build lightning-fast…

The Lightning Component framework uses Content Security Policy (CSP), a W3C standard, to control and restrict content loaded on a page to prevent cross-site scripting and other code injection attacks. The default CSP policy does not allow API calls from JavaScript code. To make API calls, a remote site needs to be added as a CSP Trusted Site in the Salesforce org. The article also provides a step-by-step guide to add a CSP trusted site and make an API call from JavaScript code successfully.

Lightning Web Components was born to succeed Aura/Lightning components. Launched by Salesforce in Feb’19, Lightning Web Components is an open…