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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠