angular.js:9866 Access to XMLHttpRequest at 'file:///C:/Users/Trabalho/Desktop/alurapic/public/v1/fotos' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
angular.module('alurapic').controller('FotosController', function($scope, $http) {
$scope.fotos = [];
const promise = $http.get('v1/fotos');
promise.then(function(retorno) {
$scope.fotos = retorno.data;
}).catch(function(error) {
console.log(error);
});
});