报错描述:
VM8044 polyfills.js:3366 Preflight request for request with keepalive specified is currently not supported
fetch(uri, {
method: 'POST',
headers: {
'Content-type': options.headers.get('content-type'),
'Authorization': options.headers.get('authorization')
},
body: JSON.stringify(interactionBody),
mode: 'same-origin', // 告诉浏览器是同源,同源后浏览器不会进行预检请求
keepalive: true
})