Clickjacking (aka "UI redress attacks") are where an attacker manages to trick your users into triggering "unintended" UI events (e.g. DOM events.)
One simple way to help prevent clickjacking attacks is to enable the X-FRAME-OPTIONS header.
Using lusca
luscais open-source under the Apache license
# In your sails app
npm install lusca --saveThen in the middleware config object in config/http.js:
// ...
// maxAge ==> Number of seconds strict transport security will stay in effect.
xframe: require('lusca').xframe('SAMEORIGIN')
// ...
order: [
// ...
'xframe'
// ...
]