上传图片,去掉认证
This commit is contained in:
parent
d5ae5bbe34
commit
b76fc95c7e
|
|
@ -66,7 +66,7 @@ namespace LY.App.MiddleWare
|
||||||
private bool IsExcludedPath(PathString path)
|
private bool IsExcludedPath(PathString path)
|
||||||
{
|
{
|
||||||
// 根据实际情况定义不需要Token验证的API路径
|
// 根据实际情况定义不需要Token验证的API路径
|
||||||
string[] arry = { "login", "websocket" };
|
string[] arry = { "login", "websocket", "uploadImg" };
|
||||||
return arry.Any(s => path.Value.Contains(s));
|
return arry.Any(s => path.Value.Contains(s));
|
||||||
// return path.StartsWithSegments("/api/public");
|
// return path.StartsWithSegments("/api/public");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue