HumanSignal / HumanSignal/label-studio
URGENT: Intemittent CORS Issues for S3 Urls
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
Cors issues coming up randomly over 50% of the time for my images which are _well hosted and configured_ in AWS S3 with all headers etc etc. The errors are very _random_.
**To Reproduce**
Steps to reproduce the behavior:
1. HuggingFace Spaces LabelStudio Deployment
2. Upload Images hosted in S3 with public URLs correct
3. Enjoy the red
Understanding that this issue is likely to do with some internal caching inside the space itself, perhaps I can edits the Dockerfile to Bust the Cache every so often? Restarting the Space does not help. Busting my own browser cache does not help either.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Environment (please complete the following information):**
- OS: [e.g. iOS]
- Label Studio Version: Huggingface Spaces Dockerfile see below
**Additional context**
```Dockerfile
FROM heartexlabs/label-studio:hf-latest
--
|
| ################################################################################
| #
| # Disable Public Account Creation
| # --------------------------------------
| ENV LABEL_STUDIO_DISABLE_SIGNUP_WITHOUT_LINK=true
| #
| ################################################################################
| #
| # Enable Hugging Face Persistent Storage for Label Studio
| # --------------------------------------------------------------
| #
| # In the Hugging Face Label Studio Space settings, select the appropriate
| # Persistent Storage tier. Note that Persistent Storage is a paid add-on.
| # By default, persistent storage is mounted to /data. In your Space settings,
| # set the following variables:
| #
| ENV LABEL_STUDIO_BASE_DATA_DIR=/data
| ENV STORAGE_PERSISTENCE=1
| #
| # Amazon S3
| # =========
| # STORAGE_TYPE=s3
| # STORAGE_AWS_ACCESS_KEY_ID=""
| # STORAGE_AWS_SECRET_ACCESS_KEY=""
| # STORAGE_AWS_BUCKET_NAME=""
| # STORAGE_AWS_REGION_NAME=""
| # STORAGE_AWS_FOLDER=""
| ################################################################################
|
| CMD exec label-studio --host=$SPACE_HOST
```
Contributor guide
Assessment
This issue has not been assessed yet.