智云SRM-WEBAPI(目前客户通用API)
yusijie
2024-09-12 c05f1964fc49bebb9ea64e189400337f8d4f0c42
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Microsoft.Owin;
using Microsoft.Owin.Cors;
using Owin;
using System;
using System.Threading.Tasks;
 
[assembly: OwinStartup(typeof(WebAPI.Startup))]
namespace WebAPI
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            
            app.UseCors(CorsOptions.AllowAll); //跨域
            app.MapSignalR();
        }
    }
}