apiObj.InterfaceOptions.CorsOptions = new ReZeroCors()
{
Enable=true,//true才启用
Headers=new string[] { "*"},
Methods = new string[] { "*" },
Origins= new string[] { "*" },
PolicyName= "cors",
AllowCredentials=false//AllowCredentials为ture得时候,origins得配置具体值,不能是通配符*
};1.6.13 版本支持了:AllowCredentials
AllowCredentials为ture得时候,origins得配置具体值,不能是通配符*

完整json文件用法
https://www.donet5.com/Doc/32/2585
2016 © donet5.comApache Licence 2.0