Tiny typo in cors.rst (#1622)
parent
9a960682f6
commit
72caeff21b
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue