Skip to content

Commit 2327e9b

Browse files
Copilotwadepickett
andcommitted
Fix code snippet syntax to use id attribute instead of range according to copilot-instructions.md
Co-authored-by: wadepickett <[email protected]>
1 parent 52ebb87 commit 2327e9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aspnetcore/security/authentication/cookie.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ The default <xref:Microsoft.AspNetCore.Builder.CookiePolicyOptions.MinimumSameSi
5555

5656
The following example shows how to configure cookie authentication with Cookie Policy Middleware:
5757

58-
:::code language="csharp" source="cookie/snippets/6.0/Program.cs" range="29-38" highlight="31-33,37":::
58+
:::code language="csharp" source="cookie/snippets/6.0/Program.cs" id="snippet_policy" highlight="3-5,9":::
5959

6060
The Cookie Policy Middleware setting for `MinimumSameSitePolicy` can affect the setting of `Cookie.SameSite` in `CookieAuthenticationOptions` settings according to the matrix below.
6161

@@ -225,7 +225,7 @@ The default <xref:Microsoft.AspNetCore.Builder.CookiePolicyOptions.MinimumSameSi
225225

226226
The following example shows how to configure cookie authentication with Cookie Policy Middleware:
227227

228-
:::code language="csharp" source="cookie/snippets/3.x/Startup.cs" range="41-50" highlight="43-45,49":::
228+
:::code language="csharp" source="cookie/snippets/3.x/Startup.cs" id="snippet_policy" highlight="3-5,9":::
229229

230230
The Cookie Policy Middleware setting for `MinimumSameSitePolicy` can affect the setting of `Cookie.SameSite` in `CookieAuthenticationOptions` settings according to the matrix below.
231231

0 commit comments

Comments
 (0)