$ .ajax Calling twice

1

I'm developing an application with Vue.JS and Jquery. The call is being made like this in Vue:

methods: {
        efetuarLogin: function (event) {
            event.stopPropagation();            
            $.ajax({
                type: 'post',
                crossDomain: true,
                data: JSON.stringify(this.Usuario),
                dataType: 'application/json',
                contentType: 'application/json',
                url: 'http://localhost:5000/api/login',
                complete:function(jqXHR, textStatus){
                    console.log(jqXHR+' - '+textStatus);
                }
            });
            
        }
    },

The call is made twice. One of the return has the result 204 (No Content).

    
asked by anonymous 12.07.2018 / 14:00

0 answers