Skip to content

Commit

Permalink
Fixed vite CORS policy blocks script access in development
Browse files Browse the repository at this point in the history
  • Loading branch information
biplobsd committed Jan 23, 2025
1 parent db8efba commit 9555944
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/manifest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default defineManifest({
] as chrome.runtime.ManifestPermissions[],
...(isDev
? {
host_permissions: ["<all_urls"],
host_permissions: ["<all_urls>"],
}
{}),
: {}),
});
10 changes: 5 additions & 5 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ export default defineConfig({
},
...(isDev
? {
legacy: {
skipWebSocketTokenCheck: tru,
,
}
: {},
legacy: {
skipWebSocketTokenCheck: true,
},
}
: {}),
});

0 comments on commit 9555944

Please sign in to comment.