1 parent 9bd06a7 commit e081259Copy full SHA for e081259
1 file changed
Program.cs
@@ -15,7 +15,7 @@
15
{
16
options.AddPolicy("AllowFrontend",
17
policy => policy
18
- .WithOrigins("*")
+ .WithOrigins("https://flowboard.azurewebsites.net")
19
.AllowAnyHeader()
20
.AllowAnyMethod()
21
);
@@ -37,11 +37,12 @@
37
app.MapOpenApi();
38
}
39
40
-app.UseHttpsRedirection();
41
42
-// Use CORS policy - must be after UseHttpsRedirection and before UseAuthorization
+// Use CORS policy
43
app.UseCors("AllowFrontend");
44
+app.UseHttpsRedirection();
45
+
46
app.UseAuthorization();
47
48
app.MapControllers();
0 commit comments