Activity Forums Salesforce® Discussions What is locker service in Salesforce Lightning?

  • madhulika shah

    Member
    August 23, 2018 at 12:16 pm

    Hi Avnish,

    Locker Service is a powerful security architecture for Lightning components. Locker Service enhances security by isolating Lightning components that belong to one namespace from components in a different namespace. Locker Service 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.

  • shariq

    Member
    September 16, 2018 at 5:58 pm

    Hi,

    To add more -

    At a high level, Lightning Locker uses various technologies and techniques that are intended to do the following:

    Prevent:

    • Components from causing XSS and similar security issues
    • Components from reading other component’s rendered data without any restrictions
    • Components from calling undocumented/private APIs

    Enable:

    • Cool new features like client-side API versioning similar to REST API versioning
    • Faster security review
    • Better and more secure JS development practices
    • Running 3rd party JS frameworks like React, Angular and so on
    • Easily adding or removing new security features and policies

    Hope this helps.

  • Parul

    Member
    September 17, 2018 at 3:49 am

    Locker Service is a security architecture for Lightning components. Locker Service enhances security by isolating Lightning components that belong to one namespace from components in a different namespace.

    Prevent:

    Components from causing XSS and similar security issues
    Components from reading other component’s rendered data without any restrictions
    Components from calling undocumented/private APIs

    Thanks

  • William

    Member
    November 29, 2018 at 3:28 am

    Lightning Locker uses various technologies and techniques to make Lightning Components secure. It is powerful security architecture for Lightning components. Locker Service enhances security by isolating Lightning components that belong to one namespace from components in a different namespace. Locker Service 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.

    At a high level, Lightning Locker uses various technologies and techniques that are intended to do the following:

    Prevent:

    ·         Components from causing XSS and similar security issues

    ·         Components from reading other component’s rendered data without any restrictions

    ·         Components from calling undocumented/private APIs

    Enable:

    ·         Cool new features like client-side API versioning similar to REST API versioning*

    ·         Faster security review

    ·         Better and more secure JS development practices

    ·         Running 3rd party JS frameworks like React, Angular and so on*

    ·         Easily adding or removing new security features and policies'

Log In to reply.

Popular Salesforce Blogs