FileManager makes extra uncontrolled request to the given Url

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?


1 Reply

SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team January 12, 2022 01:55 PM UTC

Hi Ben, 
 
Greetings from Syncfusion support. 
 
We were unable to replicate your reported problem with your shared data. We have attached a FileManager sample for your reference. 
 
 
Please, share us more details regarding your reported problem. If possible revert us with an issue replicated sample or share us the steps to replicate your reported problem at our end with screenshots. 
 
This information would help us to provide you the prompt solution. 
 
Regards, 
Shameer Ali Baig S. 


Loader.
Up arrow icon