chore: update csp config and cors
This commit is contained in:
parent
b83ee8dd0d
commit
2cba4b98f3
@ -218,7 +218,7 @@ pub fn setup_sidecar(app: &App) -> Result<(), String> {
|
||||
"--cors",
|
||||
"ON",
|
||||
"--allowed_origins",
|
||||
"http://localhost:3000",
|
||||
"http://localhost:3000,tauri://localhost",
|
||||
"config",
|
||||
"--api_keys",
|
||||
app_state.inner().app_token.as_deref().unwrap_or(""),
|
||||
|
||||
@ -30,7 +30,7 @@
|
||||
"security": {
|
||||
"csp": {
|
||||
"default-src": "'self' customprotocol: asset: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*",
|
||||
"connect-src": "ipc: http://ipc.localhost",
|
||||
"connect-src": "ipc: http://ipc.localhost http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*",
|
||||
"font-src": ["https://fonts.gstatic.com blob: data:"],
|
||||
"img-src": "'self' asset: http://asset.localhost blob: data:",
|
||||
"style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user