Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

194
Vistas
How to resolve external JavaScript assets URL issue

I have a JavaScript file on http://localhost:3000. This file includes some assets (image, fonts), which are under the same URL.

But, the problem is, when I add this script to http://localhost:5000, all the assets of that file are using http://localhost:5000 as their base URL. They should come from http://localhost:3000.

  // http://localhost:3000
  // script.js
  const image = './assets/logo.png';

  // http://localhost:5000
  <script type="text/javascript" crossorigin src="http://localhost:3000/script.js"></script>
  // image const value is, `http://localhost:5000/assets/logo.png` 
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda