!DOCTYPE htmlhtml lang="en" head meta charset="UTF-8" titleResolved!/title /head body input type="email" id="email" input type="password" id="password" button ="" id="login"Login/button script src="https://code.jquery.com/jquery-3.4.1.min.js" $(document).ready(function () { $("#login").click(function () { $.ajax({ url: 'https://example.ir/api/auth/login', type: 'post', data: {email: $("#email").val(), password: $("#password").val()}, header: 'Content-Type: application/json', success: function (data) { if (data.status) { console.log(data); } else { console.log(data); } }, error: function (xhr, status, error) { console.log(error); } }); }); }); /body/html