---
schema_version: "1"
id: 8a22ef9416ce7bd7e8c33c2c6f066dcfeedd5da639008bd5873a780b75e73588
title: Determine if Lightning Web Security is Enabled
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lwc/lightning-components-security/guides/lws/lws-is-enabled.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-components-security/guide/lws-is-enabled.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1d6cee5c3e22594153bb7ba548551b3e21fca021c938bedabdc99e97d2b419c5
products:
  - Security for Lightning Components
  - lwc
---
# Determine if Lightning Web Security is Enabled

When your user account is [enabled for debug mode](/docs/platform/lwc/guide/debug-mode-enable.html), you can check whether Lightning Web Security (LWS) is enabled.

In Chrome DevTools, look in the **Sources** panel’s **Page** tab. For Lightning web components (LWC), find the component JavaScript files in the folder _your-org-domain_`/lightning/modules/c` or your specific namespace if not using the `c` namespace. For Aura components, look in the folder _your-org-domain_`/lightning/components/c` or your specific namespace if not using the `c` namespace.

Search for the string "LWS Version" in the JavaScript files of the components.

![JavaScript file with LWS Version string highlighted](https://developer.salesforce.com/media/lws_version.png)

If LWS is disabled, the LWS version string isn’t found in the components’ JavaScript files.

Although a search can detect the string in `aura_proddebug.js`, the string’s presence in this file doesn’t indicate that LWS is enabled in the org.

**See Also**

- [Delayed Enabling or Disabling of Lightning Web Security](https://developer.salesforce.com/docs/platform/lightning-components-security/guide/lws-caching.md)
