Azure / Azure/Azurite

[QUEUE] How to upload a file from Client-side to docker's Azurite when CORS error occour

Open
#713 8 comments 0 reactions 1 assignee Claimed by @blueww View on GitHub
blob-storage NewArch question stale
Dominant language
TypeScript
Stars
2.3k
Forks
393
Avg merge
1d 20h
Merged PRs (30d)
36

Description

### Which service(blob, file, queue, table) does this issue concern?
blob

### Which version of the Azurite was used?
latest image in docker

### Where do you get Azurite? (npm, DockerHub, NuGet, Visual Studio Code Extension)
DockerHub

### What's the Node.js version?

### What problem was encountered?
The Storage Works, but when I try to upload a file from the client-side (using **azure-storage.blob.min.js**) using a SAS token, I get the following error:

![image](https://user-images.githubusercontent.com/6953687/109994871-7f039780-7cec-11eb-96d1-8effe87ee61b.png)

**IMPORTANT**: The problem IS NOT the SAS token, because when I use the Storage Emulator.

### Steps to reproduce the issue?

1. Execute **docker run -p 10000:10000 -p 10001:10001 -v C:\workspace:/workspace mcr.microsoft.com/azure-storage/azurite**;
2. Run the client library in some SPA app;
3. Try to Upload a file from the browser;

### Have you found a mitigation/solution?
Not yet.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.