Can anyone expand on whether or not the order of when this happens matters? Does this need to happen before all of the Umbraco Builder calls when adding?
And what if we're using UseHsts and/or UseHttpsRedirection. Does the order matter of when we call UseCors?
CORS in Umbraco 10: How to?
I create this code in program.cs
and the enabled into startup.cs
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
But it's not applied the CORS policy and there is not any doc about it. I use U10.2.1. How to? Thanks.
I create this and it works.
Program.cs as by default code. Into the startup.cs:
Into the ConfigureServices:
Then in the Configure add before app.UseUmbraco()...:
I had to place
app.UseCors("AllowDashboardOrigin");
insideWithMiddleware
in order to make it workWorks with version 11.0.0 too.
Can anyone expand on whether or not the order of when this happens matters? Does this need to happen before all of the Umbraco Builder calls when adding?
And what if we're using UseHsts and/or UseHttpsRedirection. Does the order matter of when we call UseCors?
is working on a reply...