1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-24 00:54:30 +01:00

dont remove CSP on browser dist (#4651)

This commit is contained in:
Kyle Spearrin 2023-02-03 15:02:27 -05:00 committed by GitHub
parent 6df37dd715
commit 28746ed4a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View File

@ -59,7 +59,6 @@ function dist(browserName, manifest) {
function distFirefox() {
return dist("firefox", (manifest) => {
delete manifest.content_security_policy;
delete manifest.storage;
return manifest;
});
@ -68,7 +67,6 @@ function distFirefox() {
function distOpera() {
return dist("opera", (manifest) => {
delete manifest.applications;
delete manifest.content_security_policy;
return manifest;
});
}
@ -76,7 +74,6 @@ function distOpera() {
function distChrome() {
return dist("chrome", (manifest) => {
delete manifest.applications;
delete manifest.content_security_policy;
delete manifest.sidebar_action;
delete manifest.commands._execute_sidebar_action;
return manifest;
@ -86,7 +83,6 @@ function distChrome() {
function distEdge() {
return dist("edge", (manifest) => {
delete manifest.applications;
delete manifest.content_security_policy;
delete manifest.sidebar_action;
delete manifest.commands._execute_sidebar_action;
return manifest;

View File

@ -65,7 +65,7 @@
"webRequestBlocking"
],
"optional_permissions": ["nativeMessaging"],
"content_security_policy": "script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval'; object-src 'self'",
"content_security_policy": "script-src 'self' 'wasm-unsafe-eval'; object-src 'self'",
"commands": {
"_execute_browser_action": {
"suggested_key": {