fix #108
This commit is contained in:
parent
4dbaa8f53d
commit
6ba500596d
2 changed files with 14 additions and 10 deletions
|
@ -113,6 +113,12 @@ const CiderBase = {
|
|||
callback({ requestHeaders: details.requestHeaders })
|
||||
})
|
||||
|
||||
win.webContents.session.webRequest.onHeadersReceived((details, callback) => {
|
||||
if(details.url.match(/^https:\/\/store-\d{3}\.blobstore\.apple\.com/) || details.url.startsWith("https://store-037.blobstore.apple.com")){
|
||||
details.responseHeaders['Access-Control-Allow-Origin'] = '*';}
|
||||
callback({ responseHeaders: details.responseHeaders })
|
||||
})
|
||||
|
||||
let location = `http://localhost:${CiderBase.clientPort}/`
|
||||
win.loadURL(location)
|
||||
win.on("closed", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue