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/'
});
})();