C# ASP.NET MVC 配置允许跨域访问

版权所有,禁止匿名转载;禁止商业使用。
        <httpProtocol>
            <customHeaders>
                <add name="Access-Control-Allow-Origin" value="*" />
                <add name="Access-Control-Allow-Headers" value="*" />
                <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE" />
            </customHeaders>
        </httpProtocol>


0 0
登录后参与讨论。点击登录