Commit 83279e0a by lizefeng

配置跨域

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