From 1ed3d10c5e2929cfbe495ab05aa8e2100246300d Mon Sep 17 00:00:00 2001 From: baozhoutao Date: Wed, 29 May 2024 11:51:12 +0800 Subject: [PATCH] =?UTF-8?q?api=E5=8F=91=E9=80=81=E9=80=82=E9=85=8D?= =?UTF-8?q?=E5=99=A8=E4=B8=AD=E5=8F=AF=E4=BB=A5=E5=B0=86allowCredentials?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=BAfalse,=20=E6=8E=A7=E5=88=B6config.wi?= =?UTF-8?q?thCredentials=E5=B1=9E=E6=80=A7=E5=80=BC.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/default/client/amis.render.client.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/service-plugin-amis/main/default/client/amis.render.client.js b/services/service-plugin-amis/main/default/client/amis.render.client.js index ecb4608af3..83d6b2c45b 100644 --- a/services/service-plugin-amis/main/default/client/amis.render.client.js +++ b/services/service-plugin-amis/main/default/client/amis.render.client.js @@ -275,6 +275,10 @@ theme: 'antd', isCurrentUrl: isCurrentUrl, requestAdaptor: (config)=>{ + if(config.allowCredentials == false){ + config.withCredentials = false; + delete config.allowCredentials + } // url是相对路径 if(config.url && (!/^http[s]?:\/\//i.test(config.url))){ if(Meteor.isCordova){