fiddler 实现跨域

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

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

  

posted @ 2022-11-14 09:14  一直闭眼看世界  阅读(44)  评论(0编辑  收藏  举报