Skip to content

Commit

Permalink
api发送适配器中可以将allowCredentials设置为false, 控制config.withCredentials属性值.
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed May 29, 2024
1 parent f642301 commit 1ed3d10
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 1ed3d10

Please sign in to comment.