Skip to content

Commit e5be0c7

Browse files
authored
Merge pull request #7929 from originell/develop
fix: aws cli syntax cors config.
2 parents db1c284 + 1e9b47a commit e5be0c7

File tree

15 files changed

+30
-30
lines changed

15 files changed

+30
-30
lines changed

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.de-de.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.en-asia.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.en-au.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.en-ca.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.en-gb.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.en-ie.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.en-sg.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.es-es.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

pages/storage_and_backup/object_storage/s3_setting_up_cors/guide.es-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The rules for accepted CORS requests are configured at the bucket level.
5050
Using the AWS CLI, set up CORS on the bucket:
5151

5252
```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
5454
```
5555

5656
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
7474
We enable CORS on the my-media bucket:
7575

7676
```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
7878
```
7979

8080
The cors.json file contains the following configuration:

0 commit comments

Comments
 (0)