Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
BitHighlander committed Feb 12, 2025
1 parent c73eb3e commit eabd51c
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .yarn/cache/axios-npm-1.7.3-a63743a582-7f92af2057.zip
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
17 changes: 17 additions & 0 deletions packages/keepkey-desktop/electron/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
mainWindow.webContents.session.webRequest.onHeadersReceived((details, callback) => {
callback({
responseHeaders: {
...details.responseHeaders,
'Content-Security-Policy': [
"default-src 'self' 'unsafe-inline' 'unsafe-eval' https: http: ws: wss:;",
"script-src 'self' 'unsafe-inline' 'unsafe-eval';",
"style-src 'self' 'unsafe-inline';",
"img-src 'self' data: https: http:;",
"font-src 'self' data:;",
"connect-src 'self' https: http: ws: wss:;",
"frame-src 'self' https: http: blob:;",
"child-src 'self' https: http: blob:;"
].join(' ')
}
})
})

0 comments on commit eabd51c

Please sign in to comment.