Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

127
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda