Integrating AngularJs 1.5.7 Api with Dream Factory

I am developing an Admin Panel in AngularJs whose apis are coming from Dream Factory.But when i am trying $http.get or post to call api url that time i am getting error

XMLHttpRequest cannot load http://localhost:8080/api/v2/mysql/_table/contact?include_count=true&limit=15&offset=0&order=last_name+ASC. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost’ is therefore not allowed access. The response had HTTP status code 403.

Then i try jsonp.In jsonp the above error is not comming but i am geting a different error

Uncaught SyntaxError: Unexpected token :

I have implemented your own angular-sdk-master.But still getting the first error.

Please let me know how i will solve this error.

HI @pritam.maiti :slight_smile:

This error is cors.

you go in tab > config > cors and create a cors for your host

I already have added the cors in dream factory but still getting same error.