I do not know how to fix this problem on my code. My code is below:
$http({
            method: 'POST',
            url: "http://urlexample.com.br",
            headers : {                                        
                "Content-Type": "application/x-www-form-urlencoded;charset=utf-8;",                   
                "Access-Control-Allow-Origin": "*",
                "Access-Control-Allow-Headers" : "X-Custom-Header",
                "Access-Control-Allow-Credentials": true,            
                "Access-Control-Allow-Methods": "POST",
                "Accept" : "application/x-www-form-urlencoded;charset=utf-8;"
            },                
            data: {
                "username": login,
                "password": senha
            }
        }).then(function (success) {
            callback(success);
        }, function (error) {
            errorCallback(error);
        });
and the errors is this:
"has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource."
Thanks.
 
     
    