Fixed example implementation of Configure method.

Corrected the example with a fully defined method's code. 
Added additional 24-26 lines to example code for providing consistent code fragment.
pull/587/merge
Andrii Tsok 2015-10-30 12:51:02 +02:00 committed by danroth27
parent 7b54f825a5
commit 2cedc484a4
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ The second approach is to define one or more named CORS policies, and then selec
.. literalinclude:: cors/sample/src/CorsExample2/Startup.cs
:language: csharp
:lines: 9-18,20-23,27
:lines: 9-18,20-26,27
:dedent: 8
This example adds a CORS policy named "AllowSpecificOrigin". To select the policy, pass the name to UseCors.