diff --git a/test/WebSites/CorsWebSite/Startup.cs b/test/WebSites/CorsWebSite/Startup.cs index 070c46f390..e5309eca5b 100644 --- a/test/WebSites/CorsWebSite/Startup.cs +++ b/test/WebSites/CorsWebSite/Startup.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNet.Builder; +using Microsoft.AspNet.Cors.Core; using Microsoft.Framework.DependencyInjection; namespace CorsWebSite @@ -11,7 +12,7 @@ namespace CorsWebSite public void ConfigureServices(IServiceCollection services) { services.AddMvc(); - services.ConfigureCors(options => + services.Configure(options => { options.AddPolicy( "AllowAnySimpleRequest",