2
I am using Django Rest and Angularjs 1.x in a project, in case this backend project and frontend are isolated, I am using a server with Gulp to run the Angularjs, but when I try to access the Rest api through the method $http.get
of angular, the browser returns me the following error:
XMLHttpRequest cannot load 0.0.0.0:8000/api/clients/?format=json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.
yes, I am using Chrome, I thought the error was in the browser, so I left for Firefox, but continued the same way, I also tried to make use of Django-Cors only that, unfortunately I did not succeed with it, I looked for some solution both here in stack and google in general but I did not have a favorable return.
Has anyone ever been through this kind of problem? if yes how to solve this problem?
in advance I am grateful.