Update cors.md (#21746)

* Update cors.md

* Update cors.md
pull/21748/head
Rick Anderson 2021-03-10 09:46:20 -10:00 committed by GitHub
parent b10d421903
commit 8be13cb67d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ There are three ways to enable CORS:
Using the [[EnableCors]](#attr) attribute with a named policy provides the finest control in limiting endpoints that support CORS. Using the [[EnableCors]](#attr) attribute with a named policy provides the finest control in limiting endpoints that support CORS.
> [!WARNING] > [!WARNING]
> <xref:Owin.CorsExtensions.UseCors%2A> must be called before <xref:Microsoft.AspNetCore.Builder.ResponseCachingExtensions.UseResponseCaching%2A> when using `UseResponseCaching`. > <xref:Owin.CorsExtensions.UseCors%2A> must be called in the correct order. For more information, see [Middleware order](xref:fundamentals/middleware/index#middleware-order). For example, `UseCors` must be called before <xref:Microsoft.AspNetCore.Builder.ResponseCachingExtensions.UseResponseCaching%2A> when using `UseResponseCaching`.
Each approach is detailed in the following sections. Each approach is detailed in the following sections.