AWS
How to enable Global CORS on AWS S3
Introduction
AWS S3 is the cloud storage service awailable on AWS. You can store almost any file on S3 and have the option to keep it private or publicly accessible. You can even store a static website on it and have it delivered to the world. But for this post, we are only looking at enabling CORS on your S3 bucket so it can be accessed globally from any domain,
Let’s Get To Business
Without further delay, let us quickly enable CORS on your AWS bucket. Follow the below steps
1. Navigate to AWS S3: Login to your AWS account and on the search type “S3”. There is the high change the S3 option will come first. Click on S3.
2. Navigate to “Permissions” Tab:
3. Scroll down to CORS option:
4. Edit The Cors Details: Click on the Edit option on the riht side of the Cors option.
5. In the large text area now enter the below JSON:
[
{
"AllowedHeaders": [
"*"
],
"AllowedMethods": [
"GET"
],
"AllowedOrigins": [
"*"
],
"ExposeHeaders": []
}
]
6. Finale: That’s it. Now your S3 object should be accessible from any origin. Even javascript. Cheers!
About Kaustav
I have decades of experience is software development using .Net Technologies, PHP and wordpress. I love coding and discovering new tech.
You may also like
Code Improvement, Coding, Mobile Apps, Productivity
If you’re developing a cross-platform app, you might be wondering whether to launch on the Google Play Store or Apple App Store first. While both platforms have their merits, starting with Google Play Store offers several advantages, especially for indie developers and startups. Here’s why: 1. Lower Entry Costs One of the biggest advantages of […]
Mobile Apps, Productivity, Work Culture
In the world of productivity, to-do list apps are everywhere. From feature-rich task managers to minimal note-taking tools, the choices are endless. But for many, these traditional apps become overwhelming, filled with endless lists, overdue tasks, and the guilt of not getting everything done. That’s why we created 3 Things—a simple, focused approach to productivity […]
0 Comments
Be the first to comment