翻过高山走不出你
尝试下这样设置config.js<httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="AuthToken, Authorization, Origin, Content-Type, Accept, X-Requested-With" /> <add name="Access-Control-Allow-Methods" value="GET, PATCH, POST, PUT, DELETE, OPTIONS" /> </customHeaders></httpProtocol>另外你的config.js 文件应该和index 页面在同级目录下。