Skip to content

Commit b154566

Browse files
pranavkmscottaddie
andcommitted
IIS CORS (dotnet#16689)
* IIS CORS * Update cors.md * edit pass * Auth --> Authentication Co-authored-by: Scott Addie <[email protected]>
1 parent 3d44f39 commit b154566

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

aspnetcore/security/cors.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ author: rick-anderson
44
description: Learn how CORS as a standard for allowing or rejecting cross-origin requests in an ASP.NET Core app.
55
ms.author: riande
66
ms.custom: mvc
7-
ms.date: 10/13/2019
7+
ms.date: 01/23/2020
88
uid: security/cors
99
---
1010
# Enable Cross-Origin Requests (CORS) in ASP.NET Core
@@ -496,6 +496,12 @@ CORS-enabled endpoints can be tested with a tool, such as [Fiddler](https://www.
496496
* There's no need for CORS Middleware to process the request.
497497
* CORS headers aren't returned in the response.
498498

499+
## CORS in IIS
500+
501+
When deploying to IIS, CORS has to run before Windows Authentication if the server isn't configured to allow anonymous access. To support this scenario, the [IIS CORS module](https://www.iis.net/downloads/microsoft/iis-cors-module)
502+
needs to be installed and configured for the app.
503+
499504
## Additional resources
500505

501506
* [Cross-Origin Resource Sharing (CORS)](https://developer.mozilla.org/docs/Web/HTTP/CORS)
507+
* [Getting started with the IIS CORS module](https://blogs.iis.net/iisteam/getting-started-with-the-iis-cors-module)

0 commit comments

Comments
 (0)