fix(boards): prevent opener access for opened apps
This commit is contained in:
1 parent
7c3b42f3fd
commit
dceb3ebee7
1 file changed
+2
-1
@@ -71,8 +71,9 @@ export const BoardContentHeaderActions = () => {
|
|||||||
const appsWithUrls = apps.filter((app) => app.href && app.href.length > 0);
|
const appsWithUrls = apps.filter((app) => app.href && app.href.length > 0);
|
||||||
|
|
||||||
for (const app of appsWithUrls) {
|
for (const app of appsWithUrls) {
|
||||||
const openedWindow = window.open(app.href ?? undefined);
|
const openedWindow = window.open(app.href ?? undefined, "_blank", "noopener,noreferrer");
|
||||||
if (openedWindow) {
|
if (openedWindow) {
|
||||||
|
openedWindow.opener = null;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user