Giter Site home page Giter Site logo

Comments (8)

XiaoningLiu avatar XiaoningLiu commented on August 24, 2024 4

Hi Guys, CORS support in Azurite V3 is planned in the incoming roadmap before V3 GA.

from azurite.

ry8806 avatar ry8806 commented on August 24, 2024

Using the C# client i'm getting 400: Bad Request - is this still in an unimplemented state?

from azurite.

jbfm avatar jbfm commented on August 24, 2024

Really missing CORS settings here as well. Difficult to test web implementations without it.

from azurite.

kuba-lilz avatar kuba-lilz commented on August 24, 2024

@XiaoningLiu Is there any timeline on cors settings release?

from azurite.

XiaoningLiu avatar XiaoningLiu commented on August 24, 2024

@kuba-lilz Already released : ) Will close this issue.

from azurite.

kuba-lilz avatar kuba-lilz commented on August 24, 2024

@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.

swimhiking avatar swimhiking commented on August 24, 2024

i try to manually set CORS, still not success, got 400 error, any suggestion to use azurite? thanks
azurite-post-400error

from azurite.

blueww avatar blueww commented on August 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.