{"id":85,"date":"2015-01-12T04:21:08","date_gmt":"2015-01-12T04:21:08","guid":{"rendered":"https:\/\/www.tech.shinynewthings.com\/?p=85"},"modified":"2015-01-12T04:21:08","modified_gmt":"2015-01-12T04:21:08","slug":"sailsjs-sails-returns-json-but-not-jsonp-enable-jsonp","status":"publish","type":"post","link":"https:\/\/www.tech.shinynewthings.com\/?p=85","title":{"rendered":"SailsJS &#8211; Sails &#8211; Returns JSON but not JSONP &#8211; Enable JSONP"},"content":{"rendered":"<p>The SailsJS api will return JSON but not JSONP by default to enable JSONP do the following.<\/p>\n<p>Open config\/blueprints.js<\/p>\n<p>Add the following line.<\/p>\n<p> <code>jsonp: true<\/p>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85"}],"version-history":[{"count":2,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":87,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=\/wp\/v2\/posts\/85\/revisions\/87"}],"wp:attachment":[{"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech.shinynewthings.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}