Posts

Showing posts with the label Locker

Salesforce Lightning Locker Tools

Lightning Locker tools help you develop more secure code that is compatible and runs efficiently with Lightning Locker. Lightning Locker API Viewer Locker API Viewer shows Lightning Locker’s support of the standard DOM APIs in the Window, Document, and Element objects. The SecureWindow, SecureDocument, and SecureElement wrappers prevent the use of APIs that are labeled Not Supported. Locker Console Overview Use Locker Console to check your JavaScript code’s compatibility with Lightning Locker, and compare how it runs with Lightning Locker enabled and disabled. MIME Types Permitted - MIME Types Permitted | Lightning Aura Components Developer Guide | Salesforce Developers Lightning Locker analyzes the MIME types used in Blob objects. Locker permits some MIME types, sanitizes some MIME types, and blocks the rest. Lightning Locker allows these MIME types. application/octet-stream — Default value for binary files application/json — JSON format application/pdf — Portable Document Format (.p...

Salesforce Locker Service

Salesforce Locker Service is a security architecture provided by Salesforce for Lightning components. It aims to improve the security of the Lightning Component Framework by enforcing stricter JavaScript security policies and DOM access restrictions. Locker Service enhances the security and stability of Lightning components Enabling Locker Service Provides the following features Namespace Isolation : Locker Service isolates Lightning components in their own namespace, preventing them from accessing or modifying components in other namespaces. This isolation helps prevent conflicts and ensures that components behave predictably. Secure DOM Access : Locker Service provides a secure wrapper around the Document Object Model (DOM), preventing Lightning components from accessing or modifying elements outside of their own DOM hierarchy. This helps mitigate security vulnerabilities such as cross-site scripting (XSS) attacks. Strict JavaScript Context: Locker Service enforces strict JavaScript...