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

216
Views
http (no https) solicitud de publicación en vanilla js

Estoy intentando (para un pequeño proyecto personal) enviar un http (no https, ya que no lo tengo configurado) a mi vps que ejecuta nodejs. Puedo enviar la solicitud perfectamente bien con el cartero, pero intentar usar xmlhttprequest imprime el siguiente error en la consola:

 Access to XMLHttpRequest at 'http://207.154.211.105/?postBidone={%22id%22:{%22nome%22:%22esempio1%22,%22localita%22:%22esempio2%22,%22extra%22:%22esempio3%22},%22action%22:%22add%22,%22content%22:%22plastic%22}' from origin 'null' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.

¿Conoces alguna forma de enviar correctamente la solicitud? ¡Gracias!

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

0

Eche un vistazo a esta publicación y habilite CORS, que solucionará este problema. ¿Cómo habilitar cors nodejs con express?

De lo contrario, proporcione más código/contexto.

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!