首页 > 其他分享 >fiddler 实现跨域

fiddler 实现跨域

时间:2022-11-14 09:23:29浏览次数:45  
标签:fiddler 跨域 实现 oResponse Access Allow oSession

static function OnBeforeResponse(oSession: Session) {
        ...

        if(oSession.uriContains("要处理的url")){
            oSession.oResponse["Access-Control-Allow-Origin"] =  "允许的域名";
            oSession.oResponse["Access-Control-Allow-Credentials"] = true;
        }
    }

  

标签:fiddler,跨域,实现,oResponse,Access,Allow,oSession
From: https://www.cnblogs.com/byksj/p/16887994.html

相关文章