提交 a9f4b01f authored 作者: 钟是志's avatar 钟是志
......@@ -181,7 +181,7 @@ export async function requestFileInfo(url, datas) {
...getHeaders().headers,
},
method: 'POST',
credentials: 'omit',
credentials: 'include',
mode: 'cors',
body: formData,
})
......
......@@ -61,7 +61,7 @@ export default async function request(url, options, config = { enableLoading: tr
export function requestOrigin(url, options, config = { enableLoading: true }) {
const { errorHandle } = config; // 错误弹窗 回调
const defaultOptions = {
credentials: getIsBei_Dian() ? 'include' : 'omit',
credentials: 'include',
mode: 'cors',
};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论