I'm using django rest and angularjs 1.x in a project, in case this backend and frontend project are isolated, I'm using a gulp server to run angularjs, but when I try to access the api rest through the $http.get
of the angle, 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'm using Chrome, I thought the error was in the browser, so I went to Firefox, but it continued the same way, I also tried to use django-cors only, unfortunately I did not succeed with it, some solution both here in the stack and google in general but did not have a favorable return.
Has anyone ever had this kind of problem? if yes how to solve this empasse?
I'm grateful already.