Mik1ll / Shizou

Anime Collection File Server, Metadata Provider, and Anime List Updater with a WebUI
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Remove HttpContextAccessor usages #111

Open Mik1ll opened 2 months ago

Mik1ll commented 2 months ago

Do not use HttpContext in interactive components https://learn.microsoft.com/en-us/aspnet/core/fundamentals/http-context?view=aspnetcore-8.0#ihttpcontextaccessorhttpcontext-in-razor-components-blazor

Mik1ll commented 3 weeks ago

Most usages were removed but there doesn't seem to be a good alternative for accessing the cookie right now. Since it works fine in Interactive Server without crossing between static rendering, not gonna touch it for now.