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
Coding, Flutter
In Dart (and most programming languages), conditional logic controls what happens when. Whether you’re checking values or switching between states, these tools help make decisions in your app. So we use them in checks and validations and make other cool stuff happen. Its like you are programming the brain of your applications using these. if, […]
Coding, Flutter
If you’re just starting with Flutter or need a quick refresher on Dart fundamentals, this post covers the essentials of variables and loops. It’s designed for fast reference, without unnecessary extras. Dart and Flutter Flutter apps are built using Dart, a modern, object-oriented language developed by Google. Understanding Dart basics is essential for writing effective […]
0 Comments
Be the first to comment