From 35b26240faf3d945a7e7fa18b705c247ea557dd4 Mon Sep 17 00:00:00 2001 From: Jass Bagga Date: Mon, 21 Nov 2016 16:15:47 -0800 Subject: [PATCH 1/3] Update README.md --- samples/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/README.md b/samples/README.md index a0cd02d8fa..3534f86e45 100644 --- a/samples/README.md +++ b/samples/README.md @@ -25,7 +25,7 @@ Run the sample The SampleOrigin application will use port 5001, and SampleDestination will use 5000. Please ensure there are no other processes using those ports before running the CORS sample. As an example, apart from GET, HEAD and POST requests, PUT requests are allowed in the CORS policy on SampleDestination. Any others, like DELETE, OPTIONS etc. are not allowed and throw an error. -Content-Length has been added as an allowed header to the sample. Any other headers are not allowed and throw an error. +Cache-Control has been added as an allowed header to the sample. Any other headers are not allowed and throw an error. To edit the policy, please see app.UseCors() method in the Startup.cs file of SampleDestination. If using Visual Studio to launch the request origin: From fd4cb7394bb8d4143ad07fcd04378b052c0c7b02 Mon Sep 17 00:00:00 2001 From: Jass Bagga Date: Mon, 21 Nov 2016 17:19:39 -0800 Subject: [PATCH 2/3] organize usings --- src/Microsoft.AspNetCore.Cors/Infrastructure/CorsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.AspNetCore.Cors/Infrastructure/CorsService.cs b/src/Microsoft.AspNetCore.Cors/Infrastructure/CorsService.cs index 32aea828c5..483cb3e59a 100644 --- a/src/Microsoft.AspNetCore.Cors/Infrastructure/CorsService.cs +++ b/src/Microsoft.AspNetCore.Cors/Infrastructure/CorsService.cs @@ -7,9 +7,9 @@ using System.Globalization; using System.Linq; using Microsoft.AspNetCore.Cors.Internal; using Microsoft.AspNetCore.Http; +using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Microsoft.Extensions.Primitives; -using Microsoft.Extensions.Logging; namespace Microsoft.AspNetCore.Cors.Infrastructure { @@ -305,4 +305,4 @@ namespace Microsoft.AspNetCore.Cors.Infrastructure } } } -} \ No newline at end of file +} From 712dff32bb909e7f9d28c611c7a16d3c2248a496 Mon Sep 17 00:00:00 2001 From: Jass Bagga Date: Mon, 21 Nov 2016 17:20:25 -0800 Subject: [PATCH 3/3] organize usings --- test/Microsoft.AspNetCore.Cors.Test/CorsServiceTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Microsoft.AspNetCore.Cors.Test/CorsServiceTests.cs b/test/Microsoft.AspNetCore.Cors.Test/CorsServiceTests.cs index b3ce5927d8..61f7908dda 100644 --- a/test/Microsoft.AspNetCore.Cors.Test/CorsServiceTests.cs +++ b/test/Microsoft.AspNetCore.Cors.Test/CorsServiceTests.cs @@ -3,8 +3,8 @@ using System; using Microsoft.AspNetCore.Http; -using Xunit; using Microsoft.Extensions.Logging.Testing; +using Xunit; namespace Microsoft.AspNetCore.Cors.Infrastructure { @@ -1081,4 +1081,4 @@ namespace Microsoft.AspNetCore.Cors.Infrastructure public string failureReason { get; set; } } } -} \ No newline at end of file +}