Skip to content

Azure Blob: UI CORS errors when storage is configured via env vars; GUI with presigned URLs works #9036

@Kajetan-Grabara-Grabar

Description

@Kajetan-Grabara-Grabar

Hi,
I set up Label Studio to work with Azure Storage. I used variables as in the documentation.

      - name: STORAGE_TYPE
        value: azure
      - name: STORAGE_AZURE_ACCOUNT_NAME
        value: loremipsum
      - name: STORAGE_AZURE_CONTAINER_NAME
        value: container-app
      - name: STORAGE_AZURE_FOLDER
        value: ''

Label Studio connects to the storage and uploading works, but in the UI I get a CORS error.

Image

When I create a new project and set up the connection to the cloud via the GUI with presigned URLs, Label Studio works and can read data from Azure Storage.

Image

Expected behavior
Assets should load in the UI without CORS errors when Azure storage is configured via environment variables, just as they do when configured via the GUI with presigned URLs.

Environment (please complete the following information):

  • OS: Azure Container Apps (Kubernetes/Linux)
  • Label Studio Docker image: 1.22.0rcfbb7e6e7b1991a2fc815fc888f76c176d8dd3254

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions