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

253
Vistas
How to open chrome extension from Node.js

I am trying to open a chrome extension written in Reactjs from the backend (Node.js) as follows:-

@Get('openExtension')
async openExtension(@Res() response) {
    response.redirect(303,`chrome-extension://nflcbnkidblhlmkflgjngmgfjojmpibk/index.html );
}

but this is changing the URL but not rendering my extension:

extension.

After reloading the page, this works fine:

reloading

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

0

This is not allowed. A website cannot direct the user to a secure local page like chrome://, chrome-extension://, file:// or the like. You need to let the extension do that for you, since an extension can have more privileges than a website.

  • You can open a page on your server and have your extension detect that page and initiate the navigation to the extension page from there. (That page could by default display instructions how to install the extension, given that it will only be actually shown if the extension is not running and redirecting that page for you.)
  • Or, if the whole thing is already initiated from frontend code anyway, you can send a message to your extension to handle it. Also take a look at this article - you will need to send a message to your own window from website JavaScript and then have a content script listen on that message and forward it to the background page with chrome.runtime.sendMessage, because a website cannot directly access the Chrome extension API.

See also this answer (the use case is slightly different, but the same idea applies).

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