在 ASP.NET Core 中启用跨域请求(CORS):
https://docs.microsoft.com/zh-cn/aspnet/core/security/cors
处理 ASP.NET Core Web API 中的错误:
https://docs.microsoft.com/zh-cn/aspnet/core/web-api/handle-errors
ASP.NET Core 中间件(调用顺序):
https://docs.microsoft.com/zh-cn/aspnet/core/fundamentals/middleware
来源:oschina
链接:https://my.oschina.net/u/4299119/blog/4295087