From c79469c3b3e3b99486bd7c7d2841efa775cb09b1 Mon Sep 17 00:00:00 2001 From: Kiran Challa Date: Mon, 14 Sep 2015 10:32:38 -0700 Subject: [PATCH] React to Cors api changes --- test/WebSites/CorsWebSite/Startup.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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",