fix #3669 add CORS policy and use Jwt with XHR to allow file uploads to work in .NET MAUI

This commit is contained in:
sbwalker
2024-01-23 10:34:18 -05:00
parent 4816bfa26d
commit b8fe95b945
6 changed files with 32 additions and 6 deletions

View File

@ -198,13 +198,13 @@ namespace Oqtane.UI
}
}
public Task UploadFiles(string posturl, string folder, string id, string antiforgerytoken)
public Task UploadFiles(string posturl, string folder, string id, string antiforgerytoken, string jwt)
{
try
{
_jsRuntime.InvokeVoidAsync(
"Oqtane.Interop.uploadFiles",
posturl, folder, id, antiforgerytoken);
posturl, folder, id, antiforgerytoken, jwt);
return Task.CompletedTask;
}
catch