Skip to content

Commit c417b78

Browse files
committed
Fix build on server
1 parent a43f83b commit c417b78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CORS/samples/SampleDestination/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void ConfigureServices(IServiceCollection services)
5858

5959
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
6060
{
61-
app.UseEndpointRouting(routing =>
61+
app.UseRouting(routing =>
6262
{
6363
routing.Map("/allow-origin", HandleRequest).WithCorsPolicy("AllowOrigin");
6464
routing.Map("/allow-header-method", HandleRequest).WithCorsPolicy("AllowHeaderMethod");

0 commit comments

Comments
 (0)