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.
- DOM Access Containment
- Stricter Content Security Policy (CSP)
- Restrictions to Global References