Skip to content

Commit

Permalink
feat: enable CORS for local image host app
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Apr 4, 2022
1 parent b213a78 commit cde1b19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/services/view/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ export class View implements IViewService {
spellcheck,
nodeIntegration: false,
contextIsolation: true,
webSecurity: true,
allowRunningInsecureContent: false,
// allow loading pictures from the localhost network, you may want to setup img host services in your local network, set this to true will cause CORS
webSecurity: false,
allowRunningInsecureContent: true,
session: sessionOfView,
preload: MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY,
additionalArguments: [
Expand Down

0 comments on commit cde1b19

Please sign in to comment.