ryanerdmann / azure-storage-browser

A directory browser for Azure Storage Static Websites
MIT License
4 stars 1 forks source link

Azure Storage Browser Prerequisites #1

Open 4M0X opened 5 months ago

4M0X commented 5 months ago

Dear Ryan, Thanks for this tool! I want to implement it, do we need some prerequisites (in addition of enabling static website)?

When I try to use it, I don't hav any listing.

Thanks in advance

image

kzwierzchlewski commented 4 months ago

has someone solved that problem? ;)

alfador1 commented 3 months ago

Since the repo owner cannot be bothered to answer, I found it the hard way. You must make your account access level "Container(anonymous read access)". That is because this javascript file, cannot else have the right to list the files under it, without a token and don't worry that is only read access.

stewartadam commented 3 months ago

You also likely have to enable CORS on your blob storage account, adding your static web hostname to the allow-list with OPTIONS,GET,HEAD methods enabled and x-ms-* as the allowed/exposed headers.

em1soldier commented 2 months ago

Getting the same behavior, any fix? Access level in the $web container is set to container (anonymous read access) and tried the CORS suggestion but no luck.

Edit: figured it out. Didn't set CORS correctly. Had a trailing slash at the end of the URL, once I took it out it came up.