@page "/cookiecheck"
@using Microsoft.AspNetCore.Http

<h3>CookieCheck</h3>

<p><b>LambertzTest:</b> @_cookie</p>

@code {
    [CascadingParameter] public HttpContext HttpContext { get; set; } = default!;
    private string? _cookie;

    protected override void OnInitialized()
    {
        HttpContext.Request.Cookies.TryGetValue("LambertzTest", out _cookie);
    }
}
