diff --git a/aspnet/security/cors.rst b/aspnet/security/cors.rst index 7dbaeb36de..9a6b8419f0 100644 --- a/aspnet/security/cors.rst +++ b/aspnet/security/cors.rst @@ -52,7 +52,7 @@ Add the CORS services in Startup.cs: Enabling CORS with middleware ----------------------------- -To enable CORS for your entire application add the CORS middleware to your request pipeline using the ``UseCors`` extension method. Note that the CORS middleware must proceed any defined endpoints in your app that you want to support cross-origin requests (ex. before any call to ``UseMvc``). +To enable CORS for your entire application add the CORS middleware to your request pipeline using the ``UseCors`` extension method. Note that the CORS middleware must precede any defined endpoints in your app that you want to support cross-origin requests (ex. before any call to ``UseMvc``). You can specify a cross-origin policy when adding the CORS middleware using the ``CorsPolicyBuilder`` class. There are two ways to do this. The first is to call UseCors with a lambda: