SailsJS – Sails – Returns JSON but not JSONP – Enable JSONP

The SailsJS api will return JSON but not JSONP by default to enable JSONP do the following.

Open config/blueprints.js

Add the following line.

jsonp: true

Leave a Reply

Your email address will not be published. Required fields are marked *