Fine uploader sending PUT request to localhost

  Kiến thức lập trình

My uploader:

var uploader = new{
    element: document.getElementById('uploader'),
    cors: {
        expected: true,
        sendCredentials: false
    request: {
        endpoint: '' // URL to the server-side endpoint
    signature: {
        endpoint: 'https://localhost:44302/Home/Sas'
    uploadSuccess: {
        endpoint: '/success'
    retry: {
        enableAuto: true
    deleteFile: {
        enabled: true

My Sas endpoint:

public async Task<string> Sas(string blobUri)
    var credentials = new StorageCredentials(STORAGE_ACCOUNT_NAME, STORAGE_ACCOUNT_KEY);
    var blob = new CloudBlockBlob(new Uri(blobUri), credentials);
    var sasParameters = new SharedAccessBlobPolicy()
        SharedAccessExpiryTime = DateTime.UtcNow.AddHours(1),
        Permissions = SharedAccessBlobPermissions.Write
    var sasToken = blob.GetSharedAccessSignature(sasParameters);
    var returnValue = blob.Uri.AbsoluteUri + sasToken;
    return returnValue;

This endpoint returns the following Sas:

The problem is that fine uploader is sending put request to incorrect URL (localhost) instead azure blob url:

[HTTP/2 404  3ms]

enter image description here

I have tried changing the config from ‘request.endpoint’ to ‘request.containerUrl’, that didnt work either.