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
parent
7b54f825a5
commit
2cedc484a4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue