From 7b190ccf0f4342140928988008e6fa3af2067b84 Mon Sep 17 00:00:00 2001 From: Jass Bagga Date: Mon, 21 Nov 2016 16:13:30 -0800 Subject: [PATCH] Changed allowed header to Cache-control to illustrate Access-Control-Allow-Headers and Access-Control-Request-Headers --- samples/SampleDestination/Startup.cs | 2 +- samples/SampleOrigin/wwwroot/Index.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/samples/SampleDestination/Startup.cs b/samples/SampleDestination/Startup.cs index 199bb16795..9859aa3abb 100644 --- a/samples/SampleDestination/Startup.cs +++ b/samples/SampleDestination/Startup.cs @@ -24,7 +24,7 @@ namespace SampleDestination app.UseCors(policy => policy .WithOrigins("http://origin.example.com:5001") .WithMethods("PUT") - .WithHeaders("Content-Length")); + .WithHeaders("Cache-Control")); app.Run(async context => { diff --git a/samples/SampleOrigin/wwwroot/Index.html b/samples/SampleOrigin/wwwroot/Index.html index dd2c4f0ae9..6529ddb6ea 100644 --- a/samples/SampleOrigin/wwwroot/Index.html +++ b/samples/SampleOrigin/wwwroot/Index.html @@ -63,7 +63,7 @@

CORS Sample

Method:

- Header Name: Header Value:

+ Header Name: Header Value: