错误by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
解决方法:
在main.js
中加入如下代码
const app = electron.app;
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors');
10.0.0版本测试有效,其他版本不做保证。