Comments (8)
Hi Guys, CORS support in Azurite V3 is planned in the incoming roadmap before V3 GA.
from azurite.
Using the C# client i'm getting 400: Bad Request - is this still in an unimplemented state?
from azurite.
Really missing CORS settings here as well. Difficult to test web implementations without it.
from azurite.
@XiaoningLiu Is there any timeline on cors settings release?
from azurite.
@kuba-lilz Already released : ) Will close this issue.
from azurite.
@XiaoningLiu
Hi, I just double checked using mcr.microsoft.com/azure-storage/azurite:3.11.0
and no, CORS settings aren't reflected correctly, even though container accepts the request for setting them and returns 202.
I'm sending request with python azure-storage-blob==1.5.0 package and following code
cors_rule = azure.storage.common.models.CorsRule(
allowed_origins="0.0.0.0:*",
allowed_headers="*",
allowed_methods=["GET"],
exposed_headers="*",
max_age_in_seconds=100)
blob_storage.set_blob_service_properties(cors=[cors_rule])
but when accessing data from a web browser I still get
edit:1 Access to image at 'http://localhost:10000/devstoreaccount1/photos/7d64ff9f-76ef-425e-81d1-e9478955b30e/0734507c-431a-4996-a1bd-597a1fb5708e.jpg?st=2021-03-10T07%3A47%3A48Z&se=2021-03-10T08%3A57%3A48Z&sp=r&sv=2018-03-28&sr=b&rsct=image/jpeg&sig=OwE3UF1dsgC30V80Xoenprhezd2wgKxzQY01sSFSRYk%3D' from origin 'http://0.0.0.0:5000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
error
Can we reopen this issue and fix it?
from azurite.
i try to manually set CORS, still not success, got 400 error, any suggestion to use azurite? thanks
from azurite.
@swimhiking
You issue might not be same issue as before.
Would you please open a new issue by following the issue template (especially give the debug log of Azurite), and we can look deeper into it.
from azurite.
Related Issues (20)
- Update mysql2 version HOT 5
- Metadata Vanishing HOT 12
- UserDelegationKey fails with 500 HOT 2
- Azurite HTTP Interface Impossible to Use from the Command Line. HOT 1
- BeginCopyAsync is throwing wrong exception when source blob is not found. HOT 1
- Upload from URL not working with a SAS URL HOT 1
- Not being able to launch Azurite from DockerHub. HOT 4
- The value for one of the HTTP headers is not in the correct format HOT 2
- Please Document Azurite Logging in VS CODE - not obvious how to see logs HOT 1
- Cannot add --skipApiVersionCheck when using testcontainers HOT 2
- Docker container is not up-to-date HOT 2
- Azurite returns 500 for all PUT requests after an unexpected client restart HOT 6
- Docker image won't stop restarting HOT 4
- Port specification not working (docker, --blobPort) HOT 1
- Block blob StageBlockWithURL isn't implemented HOT 6
- Azurite will deprecate supporting Node.js 14 in a future release.
- Azurite not recognizing accounts other than default even though prerequisites are met. HOT 2
- Azure Shared Access Signature - Signature did not match using ingress nginx HOT 3
- `Access-Control-Allow-Origin` header not set in Azurite response
- Aspire default table HealthCheck fails with 400 bad request
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azurite.