PatrickStankard / bucketlist

An Apache-like index for viewing the file and directory listing of an Amazon S3 bucket.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

window.bucketlistConfig fails

itunplugged opened this issue · comments

Hi Patrick,
Thanks for the code, it works great when I host it in the same bucket I would like to list however, when I move the files to a new bucket and reference the original bucket with window.bucketlistConfig the site fails with permission or CORs issue splash page

I have modified the html;

<script type="text/javascript">
window.bucketlistConfig = {
url: 'http://bucket.name.s3.amazonaws.com/',
limit: 100
};
</script>

Any help would be greatly appreciated!

Thanks,

Nick

window.bucketlistConfig = {
url: 'http://bucketname.s3.amazonaws.com/',
limit: 100
};

hi nick - if you're using it to point to a bucket from another bucket, you need to make sure the bucket you're pointing to has CORS permissions set to allow LISTs from *

Lists or Gets?

CORSConfiguration
CORSRule
AllowedOrigin*/AllowedOrigin
AllowedMethodGET/AllowedMethod
MaxAgeSeconds3000/MaxAgeSeconds
AllowedHeaderAuthorization/AllowedHeader
/CORSRule
/CORSConfiguration"

ah, i meant giving "Everyone" permissions to "list": http://aws.amazon.com/articles/5050/

if that doesn't work with your CORS permissions set to allow * to GET (as you showed me), i can take a look in the morning and see what the deal is

Sent from Mailbox for iPhone

On Thu, Feb 13, 2014 at 1:13 AM, itunplugged notifications@github.com
wrote:

Lists or Gets?
CORSConfiguration
CORSRule
AllowedOrigin*/AllowedOrigin
AllowedMethodGET/AllowedMethod
MaxAgeSeconds3000/MaxAgeSeconds
AllowedHeaderAuthorization/AllowedHeader
/CORSRule

/CORSConfiguration"

Reply to this email directly or view it on GitHub:
#1 (comment)

did that help?

i also added links to AWS documentation in the readme: https://github.com/PatrickStankard/bucketlist#prerequisites

i tested it and made sure it worked, so i'm gonna close this - feel free to reach out if you're still having issues