Skip to content

Commit

Permalink
Re-add asset: to CSP's connect-src
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Jan 4, 2025
1 parent 8badc2d commit df44aab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"csp": {
"default-src": "'self' asset: http://asset.localhost",
"connect-src": "ipc: http://ipc.localhost 'self' https://api.github.com",
"connect-src": "'self', asset: http://asset.localhost blob: ipc: http://ipc.localhost https://api.github.com",
"img-src": "'self' asset: http://asset.localhost data:",
"media-src": "'self' asset: http://asset.localhost blob: data:",
"child-src": "'self'; object-src 'self'",
Expand Down
1 change: 0 additions & 1 deletion src/stores/usePlayerStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { error } from '@tauri-apps/plugin-log';
import debounce from 'lodash-es/debounce';
import type { StateCreator } from 'zustand';
import { persist } from 'zustand/middleware';
Expand Down

0 comments on commit df44aab

Please sign in to comment.