Edit Page

config/security.js

This file is the conventional home of your Sails app's global security settings. For a complete reference of available security configuration in Sails, see:

For a conceptual explanation of CORS in Sails, see Security > CORS.

For a conceptual explanation of CSRF in Sails, see Security > CSRF.

Usage

#

See sails.config.security for all available options.

Want to see for yourself?

An example of this file can be found in our sample app repo, here.

Anatomy of a Sails App