小编oma*_*idi的帖子

appsettings.json 中的 AllowedHosts 和 .NET Core API 3.x 中的 UseCors 之间的区别

我看到 .NET Core 3.x 带有一个新的特殊配置AllowedHosts,用于列出允许访问站点的主机,而 CORS (app.UseCors) 已经存在此选项。

这两个选项有什么区别?

.net c# .net-core

24
推荐指数
1
解决办法
2万
查看次数

标签 统计

.net ×1

.net-core ×1

c# ×1