Ionic Framework Trouble


So far this is the only (DF related) code I have entered:

var todoApp = angular.module(‘starter’, [‘ionic’, ‘ngDreamFactory’], function ($compileProvider) {
.constant(‘DSP_URL’, ‘https:///api/v2’)

I am getting the following error on Ionic Serve:

XMLHttpRequest cannot load http://**********/api/v2/rest/api_docs. Response to preflight request doesn’t pass access control check: Credentials flag is ‘true’, but the ‘Access-Control-Allow-Credentials’ header is ‘’. It must be ‘true’ to allow credentials. Origin ‘http://localhost:8100’ is therefore not allowed access.
ionic.bundle.js:21162 TypeError: Cannot read property ‘status’ of null
at Object.obj.on.error (angular-dreamfactory.js:158)
at angular-dreamfactory.js:1571
at ionic.bundle.js:18913
at processQueue (ionic.bundle.js:23399)
at ionic.bundle.js:23415
at Scope.$eval (ionic.bundle.js:24678)
at Scope.$digest (ionic.bundle.js:24489)
at Scope.$apply (ionic.bundle.js:24783)
at done (ionic.bundle.js:19196)
at completeRequest (ionic.bundle.js:19368)

When I run it on my phone through Chrome Inspect:

undefined : undefined http://**********/api/v2/rest/api_docs


This is a CORS error.

Have you configured CORS for your DreamFactory?