File tree Expand file tree Collapse file tree 15 files changed +30
-30
lines changed
pages/storage_and_backup/object_storage/s3_setting_up_cors Expand file tree Collapse file tree 15 files changed +30
-30
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
50
50
Using the AWS CLI, set up CORS on the bucket:
51
51
52
52
``` sh
53
- aws s3api put-bucket-cors --bucket my-bucket --cors-configuration cors.json
53
+ aws s3api put-bucket-cors --bucket my-bucket --cors-configuration file:// cors.json
54
54
```
55
55
56
56
The cors.json file contains the following configuration:
@@ -74,7 +74,7 @@ Let's assume we have a frontend web application hosted on `https://my-app.xyz` t
74
74
We enable CORS on the my-media bucket:
75
75
76
76
``` sh
77
- aws s3api put-bucket-cors --bucket my-media --cors-configuration cors.json
77
+ aws s3api put-bucket-cors --bucket my-media --cors-configuration file:// cors.json
78
78
```
79
79
80
80
The cors.json file contains the following configuration:
You can’t perform that action at this time.
0 commit comments