Skip to content

Commit

Permalink
closes #7209
Browse files Browse the repository at this point in the history
  • Loading branch information
mikermcneil authored Mar 18, 2022
1 parent 06ce9cf commit 7c5379a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ This method is useful primarily in development scenarios.
| 1 | _options_ | ((dictionary?)) | Currently accepts one key, `hooksToSkip`, which if given should be an array of names of hooks that should _not_ call their `reloadActions` method.
| 2 | _callback_ | ((function)) | A callback to be called with the virtual response.

### Notes
> - Never dynamically replace your Sails.js controller or action files on disk with untrusted code at runtime, regardless of whether you are using `.reloadActions()` in your app or not. Since `reloadActions()` runs the code in your Sails.js app's files, if the files are not safe to run, then using `reloadActions()` would be [a security risk](https://github.com/balderdashy/sails/issues/7209). This risk is only present if your Sails app is deliberately overwriting its own files to replace them with unsafe code.

<docmeta name="displayName" value="sails.reloadActions()">
<docmeta name="pageType" value="method">
Expand Down

0 comments on commit 7c5379a

Please sign in to comment.