clipper: allow web clipper to connect with v3 web app

This commit is contained in:
Abdullah Atta
2024-04-09 14:58:55 +05:00
parent a12a3fbdc8
commit 3e76f3b8c6
2 changed files with 3 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ const nnHost =
process.env.NODE_ENV === "production"
? "*://app.notesnook.com/*"
: "*://localhost/*";
const v3nnHost = "*://v3.notesnook.com/*";
const corsHost = "https://cors.notesnook.com/*";
const common = {
name: "Notesnook Web Clipper",
@@ -49,7 +50,7 @@ const common = {
const v2 = {
...common,
permissions: [...common.permissions, corsHost, nnHost],
permissions: [...common.permissions, corsHost, nnHost, v3nnHost],
optional_permissions: ["http://*/*", "https://*/*"],
browser_specific_settings: {
gecko: {

View File

@@ -22,5 +22,5 @@ export const APP_URL =
: "http://localhost:3000";
export const APP_URL_FILTER =
process.env.NODE_ENV === "production"
? ["*://app.notesnook.com/*"]
? ["*://app.notesnook.com/*", "*://v3.notesnook.com/*"]
: ["*://localhost/*"];