let email=values.email;
let password=values.password;
let input = {
        'email': email,
        'password': password
    };
    axios({        
         headers: {
            'Content-Type': 'application/json; charset=utf-8'
         } ,          
        method:'POST',
        url: "http://localhost:3001/user/login",
        data:{
            'email': email,
            'password': password
        }
    }).then(function (response){
        console.log(response);
    })
    .catch(function (error) {
    });
So why it show OPTIONS on request method when we use header Centent-type: application/json
 
    