Skip to content

Commit 1d29466

Browse files
authored
fix: credentials: include 产生跨域问题 (#2010)
1 parent 3395afd commit 1d29466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/source/src/parser/image.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function loadData(data: string | string[], done: any) {
3939
const url = data;
4040
const imageDatas: Array<HTMLImageElement | ImageBitmap> = [];
4141
if (typeof url === 'string') {
42-
getImage({ url, credentials: 'include' }, (err, img) => {
42+
getImage({ url }, (err, img) => {
4343
if (img) {
4444
imageDatas.push(img);
4545
done(imageDatas);
@@ -49,7 +49,7 @@ function loadData(data: string | string[], done: any) {
4949
const imageCount = url.length;
5050
let imageindex = 0;
5151
url.forEach((item) => {
52-
getImage({ url: item, credentials: 'include' }, (err, img) => {
52+
getImage({ url: item }, (err, img) => {
5353
imageindex++;
5454
if (img) {
5555
imageDatas.push(img);

0 commit comments

Comments
 (0)