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

Locker Service is a set of new security features for Lightning Components.

LockerService is a powerful new security architecture for Lightning components that is a critical update for this release. LockerService enhances security by isolating individual Lightning components in their own containers. LockerService also promotes best practices that improve the supportability of your code by only allowing access to supported APIs and eliminating access to non-published framework internals.

LockerService enforces a number of security features in your code.

  • JavaScript ES5 Strict Mode Enforcement
  • DOM Access Containment
  • Stricter Content Security Policy (CSP)
  • Restrictions to Global References
  • Access to Supported JavaScript API Framework Methods Only