Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

114
Views
Login post request with jQuery Ajax

I'm trying to write a bot to log in and checkout automatically on the https://zalando.it site (is the same in other languages), but i don't understand how to write a request like this in ajax (this is the login form): enter image description here

Payload is like 3 elements "email, secret and request". This is my code:

$(document).ready(function(){
  $("button").click(function(){
    alert("ciao");
    $.post("https://accounts.zalando.com/api/login",
    {
      email: "myemail",
      request: "eyJjbGllbnRfaWQiOiJmYXNoaW9uLXN0b3JlLXdlYiIsInJlc3BvbnNlX3R5cGUiOiJjb2RlIiwic2NvcGVzIjpbIm9wZW5pZCJdLCJyZWRpcmVjdF91cmkiOiJodHRwczovL3d3dy56YWxhbmRvLml0L3Nzby9jYWxsYmFjayIsInN0YXRlIjoiZXlKdmNtbG5hVzVoYkY5eVpYRjFaWE4wWDNWeWFTSTZJbWgwZEhCek9pOHZkM2QzTG5waGJHRnVaRzh1YVhRdmRXOXRieTFvYjIxbEx5SXNJblJ6SWpvaU1qQXlNUzB4TVMweE9GUXhNRG93T0RveE9Wb2lmUT09Iiwibm9uY2UiOiIyNzQ2NmEyYi1iNWUyLTQ0MGItYmU0NS1iM2QwYjk1YmY5N2IiLCJ1aV9sb2NhbGVzIjpbIml0LUlUIl0sInJlcXVlc3RfaWQiOiJ6Rmt1a0dXRDJ5b1EyMHJVOmNkYTFhZDQ5LTZlMjMtNDE5Ny1iNjA0LTZiYjM5MDY1ZjY1MDpFLTB3dXZjVTB2aTNhV0ZpIn0=",
      secret: "mypassword"
    },
    function(data,status){
      alert("Data: " + data + "\nStatus: " + status);
    });
  });
});

It returns a 403 status code. Why?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!