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

118
Views
Why browsers send get request instead of post request in my React project that uses Redux?

I have a dispatch in one of my components that calls by form submission:

const handleSubmit = (values) => {
    dispatch(resetPassActionCreator(values.email));
  };

and this is resetPassActionCreator function:

export const resetPassActionCreator = username => dispatch => {
    const url = PASSWORD_RESET_GET_EMAIL;
    dispatch(
        apiCallBegan({
            url,
            method: "POST",
            onStart: passwordResetSlice.actions.resetPassword.type,
            onSuccess: passwordResetSlice.actions.resetPasswordSuccess.type,
            onError: passwordResetSlice.actions.resetPasswordFail.type,
            data: {
                username,
            },
        })
    );
};

and I check the url and it does not have '/' at the end. can anyone tell me why the browser sends get request instead of post?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This is not a problem with the browser.
Probably you are using apiCallBegan in the wrong way )
or its implementation does not support POST requests.

about 4 years ago · Juan Pablo Isaza Report
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!