1. Click Setup.

  2. In Quick Find, enter Session Settings and click Session Settings under Security.

  3. Under Lightning Web Security, deselect the Use Lightning Web Security for Lightning web components and Aura components checkbox.

  4. Save your changes.

  5. Refresh the application cache by logging out of the org and then logging back in.

    image (61) (1).png

    https://help.salesforce.com/s/articleView?id=ind.Disable_Lightning_Web_Security_CAM.htm&type=5

    https://help.salesforce.com/s/articleView?id=000392327&type=1