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:
.
After reloading the page, this works fine:

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.
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).