First of all create sails js Website or project
then change setting in sails js project as below:
in project config->env->production
//remove from comments
onlyAllowOrigins: [
'https://example.com',
'https://staging.example.com',
],
//remove from comments
trustProxy: true,
then deploy on heroku