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

250
Visualizações
blocked by CORS policy but still POST request is performed, HOW?

I had a server running on localhost port 3000 using NodeJs.

There I had a database linked and had 2 basic POST methods (Create and Delete)*.

*(I had not written any extra checking for request headers)

I was curious to know if only client-side JS (with a dummy HTML page) can perform the deletion by itself!

I wrote THIS in the client-side js (in a separate directory )

After trying the POST Delete operation like this , I got this ERROR

But even though error was raised, the "Deletion Operation" was still performed succesfully and the data with the specific id was deleted!

My Question is "what exactly is blocked if it was not the deletion operation ?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

With CORS, requests are never blocked on server-side. It will only instruct the browser to not send the requests if possible (with PRE-FLIGHT).

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

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