Commit 83279e0a by lizefeng

配置跨域

parent 3dba2025
......@@ -73,12 +73,12 @@ namespace AutoTurnOver
app.UseHttpsRedirection();
// 跨域配置
app.UseCors(builder =>
builder.WithOrigins("http://uiaims.bailuntec.com")
.AllowAnyMethod()
.AllowAnyHeader()
.AllowCredentials()
);
//app.UseCors(builder =>
//builder.WithOrigins("http://uiaims.bailuntec.com")
//.AllowAnyMethod()
//.AllowAnyHeader()
//.AllowCredentials()
//);
app.UseMvc(routes =>
{
......
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