Tiny typo in cors.rst (#1622)

pull/1629/head^2
David Moore 2016-07-07 03:40:26 +12:00 committed by Rick Anderson
parent 9a960682f6
commit 72caeff21b
1 changed files with 1 additions and 1 deletions

View File

@ -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: