Here is my setup of the FileManager:
<SfFileManager TValue=@FileManagerDirectoryContent
RootAliasName="Files"
@ref=@fileManagerReference
ShowThumbnail>
<FileManagerAjaxSettings Url="/api/FileOperations"
UploadUrl="/api/Upload"
DownloadUrl="/api/Download"
GetImageUrl="/api/GetImage">
</FileManagerAjaxSettings>
<FileManagerContextMenuSettings File=@fileMenuOptions />
<FileManagerToolbarSettings Items=@toolbarOptions />
<FileManagerEvents TValue=@FileManagerDirectoryContent
OnSend=@OnSend />
</SfFileManager>
The OnSend method takes the request and adds the authentication cookie to send to the backend. This works for the most part. However, the backend receives an extra request to "/api/FileOperations" (the given Url) which does not go through the OnSend method, and hence does not have the authentication cookie added. The auth on the backend then fails and the component enters the error state.
Is there something I'm missing here to ensure all the requests from FileManager are authenticated?