HumanSignal / HumanSignal/label-studio

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

Open
#9,036 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.