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

290
Vistas
Multiple PWAs on the same host but different subfolders - same origin behavior

I create a test server domain named, e.g., https://pwa.test.com and put two PWAs:

https://pwa.test.com/app1

https://pwa.test.com/app2

I am using VueJS and in vue.config.js is possible to set base url to subfolder. So both PWAs work gracefully in each subfolder. The problem is that they share the local and session storage, and this is a severe security issue.

The IndexedDB has a specific name for each app, but both are listed together.

How I can separate completely my apps?

I try use 'scope' in manifest.json, but this does not apply to storage.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Using the local storage, you are in charge of detecting which PWA is trying to reach the data. If you really need to use the same subdomain for both, you must also use different keys to identify the items in the local storage. The same applies to sessions.

The best solution would be to use different subdomains for the same application. Your browser should do the rest and store the information separately.

about 4 years ago · Juan Pablo Isaza Denunciar
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