Problems with Lightsail storage bucket

0

I created a Storage bucket in Lightsail but I’ve got the error No 'Access-Control-Allow-Origin' header is present on the requested resource. Also not all the media is loaded on the website from the storage bucket but the server url using WP Offload media plugin to transfer the media objects to the bucket. I am using a lightsail distribution attached to the storage bucket to get a cloudfront CDN to use in the website. I have tried to access the bucket in S3 to change CORS permissions but is not there, I have to access from the WP Offload media plugin and when I got to permission to edit the CORS policy, it says " You or your AWS administrator must update your IAM permissions to allow s3:GetBucketCORS". I have added the policy permission in my IAM account but I am still not able to access to it. How I can change change the CORS for that bucket and how I can get all the media upload from the Storage bucket. Or I should create the bucket directly in S3 and then link it to the Lightsail instance? Thanks

1 回答
1

Good evening,

I could not find much Information regarding CORS and lightsail storage bucket other than it not being available.

But maybe this KB helps you since it is explaining basically your setup step by step so it seems like it should work without it: https://lightsail.aws.amazon.com/ls/docs/en_us/articles/amazon-lightsail-using-distributions-with-buckets

profile picture
HeikoMR
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容