Fix CORS issue in Dashboard Monolith sample project
Moving app.UseCors() to the top of the Http Pipeline config fixes some CORS problems I found
This commit is contained in:
parent
e1d54786d5
commit
4c881cd5f2
|
|
@ -60,9 +60,9 @@ namespace ElsaDashboard.Samples.AspNetCore.Monolith
|
|||
app.UseHsts();
|
||||
}
|
||||
|
||||
app.UseCors();
|
||||
app.UseStaticFiles();
|
||||
app.UseHttpActivities();
|
||||
app.UseCors();
|
||||
app.UseRouting();
|
||||
app.UseAuthorization();
|
||||
app.UseEndpoints(endpoints =>
|
||||
|
|
@ -74,4 +74,4 @@ namespace ElsaDashboard.Samples.AspNetCore.Monolith
|
|||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue