Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting CORS error on upload of document from browser #13658

Closed
1 of 6 tasks
nickdekesel opened this issue Feb 8, 2021 · 4 comments
Closed
1 of 6 tasks

Getting CORS error on upload of document from browser #13658

nickdekesel opened this issue Feb 8, 2021 · 4 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Storage Storage Service (Queues, Blobs, Files)

Comments

@nickdekesel
Copy link

  • Package Name: @azure/storage-blob
  • Package Version: 12.4.1
  • Operating system: Windows
  • nodejs
    • version:
  • browser
    • name/version: Chrome/88.0.4324.150
  • typescript
    • version:
  • Is the bug related to documentation in

Describe the bug
We updated the azure blob storage package from 12.1.1 to 12.4.1.
This caused the BlockBlobClient to fail when calling uploadBrowserData giving the following error:
image
I also tried using the suggested uploadData as uploadBrowserData is deprecated but the same issue persists.
When I go back to 12.1.1 it just works fine.

I use azurite for local development.

To Reproduce
Steps to reproduce the behavior:

  1. Try to upload a document using BlockBlobClient.uploadBrowserData on version 12.1.1 and version 12.4.1. using azurite as blob storage emulator

Expected behavior
Uploads te document without giving errors.

@ramya-rao-a ramya-rao-a added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Feb 8, 2021
@ramya-rao-a ramya-rao-a added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Feb 8, 2021
@ghost ghost added the needs-team-attention This issue needs attention from Azure service team or SDK team label Feb 8, 2021
@ramya-rao-a ramya-rao-a added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that and removed needs-team-attention This issue needs attention from Azure service team or SDK team labels Feb 8, 2021
@ghost ghost added the needs-team-attention This issue needs attention from Azure service team or SDK team label Feb 8, 2021
@ljian3377
Copy link
Member

Have you set the CORS rules for your storage account?
https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/storage/storage-blob#cors

@ljian3377 ljian3377 added needs-author-feedback More information is needed from author to address the issue. and removed needs-team-attention This issue needs attention from Azure service team or SDK team labels Feb 9, 2021
@nickdekesel
Copy link
Author

Yes I have done so

@ghost ghost added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels Feb 9, 2021
@ljian3377
Copy link
Member

@XiaoningLiu Do you have any advice since this is Azurite related?

@ljian3377 ljian3377 assigned EmmaZhu and unassigned ljian3377 Feb 9, 2021
@nickdekesel
Copy link
Author

I updated azurite from 3.9.0 to 3.11.0 and now it is working fine

openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this issue May 6, 2021
[Hub Generated] Review request for Microsoft.Consumption to add version stable/2021-05-01 (Azure#13658)

* Adds base for updating Microsoft.Consumption from version stable/2019-11-01 to version 2021-05-01

* Updates readme

* Updates API version in new specs and examples

* Updates to Lots/Events

* Lot source updated

* Lot status updated

* Lot source updated

* prettier update

* Events example file reference updated

* Adding Lint Suppression

* Update readme.md
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

4 participants