WebStorm 2021.2 Help

Project security

To prevent potential security risks, WebStorm lets you decide how to work with a project if you're not sure about its source. WebStorm warns you about tasks, File Watchers or webpack configurations that will be executed and lets you configure sources that you can trust.

Learn more from File Watchers, Webpack, and React.

Startup tasks

When you open a project created on a different machine, it might contain some scripts or tasks that are executed during the opening process. If such tasks are found, WebStorm displays a notification suggesting that the code you are about to execute might be harmful.

You can review what tasks will be executed and modify the settings.

Review the startup tasks

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Tools | Startup Tasks.

  2. On the Startup Tasks settings page, you can review and modify the startup tasks.

Trusted locations

You can configure what sources WebStorm should consider safe and accordingly load them and run File Watchers or webpack configurations without showing the notification.

You can add your home directory to the trusted locations to disable WebStorm's warnings about untrusted projects.

Configure trusted locations

  1. In the Settings/Preferences dialog Ctrl+Alt+S, go to Build, Execution, Deployment | Trusted Locations.

  2. On the Trusted Locations settings page, configure the local directories where the projects you consider trusted reside. Click OK to save the changes.

    Trusted locations

    The next time you open a project from one of those locations, WebStorm will implicitly trust it.

Last modified: 22 December 2021