parent
b10d421903
commit
8be13cb67d
|
@ -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.
|
||||
|
||||
> [!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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue