Commit d4c3c25a authored by 黄奎's avatar 黄奎

页面修改

parent b13b3ca2
......@@ -27,6 +27,7 @@ namespace Mall.WebApi.Controllers.User
[ApiExceptionFilter]
[ApiController]
[EnableCors("AllowCors")]
public class TenantController : BaseController
{
/// <summary>
......
......@@ -46,6 +46,7 @@ namespace Mall.WebApi.Filter
"/api/Tenant/SetTenantFirst",//用户注册第一步
"/api/Tenant/SetTenantSecond",//用户注册第二步
"/api/Tenant/UpdateTenantPwd",//忘记密码
"/api/Mall/GetHome",//
};
bool isCheckToken = true;
foreach (var item in notValidatList)
......
......@@ -44,7 +44,8 @@ namespace Mall.WebApi
{
"http://localhost:8081",
"http://localhost:8080",
"http://localhost:8082"
"http://localhost:8082",
"http://127.0.0.1:50512"
};
services.AddCors(options => options.AddPolicy("AllowCors", policy => policy.AllowAnyHeader().AllowAnyMethod().AllowCredentials().WithOrigins(corsArray.ToArray())));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment