CORS error when trying to authenticate an API in localhost

0

I am trying to access my API that is in localhost. However, when I try to access it, I run into the following error:

  Failed to load link : The 'Access-Control-Allow-Origin' header contains multiple values' *, * ', but only one is allowed. Origin ' link ' is therefore not allowed access.

Is it necessary to configure something in particular in my apache or coding failure in my app-config.js (I'm using angularJs)?

app-config:

(function () {
  'use strict';
   app.constant('AppConfig', {
    AppTitle: 'testeBase',
   ApiUrl: 'http://127.0.0.1:8000/api/'
  });
})();
    
asked by anonymous 16.10.2018 / 00:58

0 answers