I know how to access cookies in Blazor in the OnAfterRender hook using Javascript. But, I need to access cookies in Oninitialized before javascript is available.
I've tried the adding the following:
[CascadingParameter] private HttpContext HttpContext { get; set; }but the IDE complains that it doesn't even know what HttpContext is.Can anyone please help me access cookies from Oninitialized?