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

602
Views
¿Cómo resolver el error `El acceso a XMLHttpRequest desde Origin ha sido bloqueado por la política CORS`?

Estoy creando una aplicación de chat simple. Estoy usando JavaScript y NodeJS. Pero cuando trato de ejecutar la aplicación, aparece el siguiente error en la consola.

Access to XMLHttpRequest at 'http://localhost:8000/socket.io/?EIO=4&transport=polling&t=NyWc1um' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

polling-xhr.js:157 GET http://localhost:8000/socket.io/?EIO=4&transport=polling&t=NyWc5p8 net::ERR_FAILED 200

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

0

Agregue el siguiente encabezado a su servidor WebSocket: Access-Control-Allow-Origin: * esto permite que todos los orígenes accedan a su servidor.

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!