Improved the security of the connection between the app window and AI Studio (#1146)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-01 12:29:37 +01:00
1 parent 64dc621a7d
commit faae2951f7
26 files changed
+1056 -88

No files matched your search

+2 -3
View File
@@ -13,7 +13,7 @@ namespace AIStudio.Pages;
public partial class Home : MSGComponentBase
{
[Inject]
private HttpClient HttpClient { get; init; } = null!;
private WebRootFiles WebRootFiles { get; init; } = null!;
[Inject]
private NavigationManager NavigationManager { get; init; } = null!;
@@ -222,8 +222,7 @@ public partial class Home : MSGComponentBase
private async Task ReadLastChangeAsync()
{
var latest = Changelog.LOGS.MaxBy(n => n.Build);
using var response = await this.HttpClient.GetAsync($"changelog/{latest.Filename}");
this.LastChangeContent = await response.Content.ReadAsStringAsync();
this.LastChangeContent = await this.WebRootFiles.ReadTextAsync($"changelog/{latest.Filename}");
await this.InvokeAsync(this.StateHasChanged);
}