Skip to content

Commit 1b25284

Browse files
authored
Removing the "s" from examples file names to match the folder names
1 parent 023b2aa commit 1b25284

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

add-cors-header/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ If your web site or application doesn't need CORS headers, then this function is
1313
To validate that the function is working as expected, you can use the JSON test objects in the `test-objects` directory. To test, you can use the `test-function` CLI command that will look something like this:
1414

1515
```
16-
$ aws cloudfront test-function --if-match EXXXXXXXXXXXX --name add-cors-headers --event-object fileb://add-cors-headers/test-objects/no-cors-header.json
16+
$ aws cloudfront test-function --if-match EXXXXXXXXXXXX --name add-cors-header --event-object fileb://add-cors-header/test-objects/no-cors-header.json
1717
```
1818

1919
If the function has been set up correctly, you should see a result similar to the following with the `access-control-allow-origin` header being added in the `FunctionOutput` JSON object:
@@ -28,7 +28,7 @@ If the function has been set up correctly, you should see a result similar to th
2828
"Runtime": "cloudfront-js-1.0"
2929
},
3030
"FunctionMetadata": {
31-
"FunctionARN": "arn:aws:cloudfront::1234567890:function/add-cors-headers",
31+
"FunctionARN": "arn:aws:cloudfront::1234567890:function/add-cors-header",
3232
"Stage": "DEVELOPMENT",
3333
"CreatedTime": "2021-04-08T23:37:50.825000+00:00",
3434
"LastModifiedTime": "2021-04-08T23:37:51.096000+00:00"
@@ -42,4 +42,4 @@ If the function has been set up correctly, you should see a result similar to th
4242
"FunctionOutput": "{\"response\":{\"headers\":{\"access-control-allow-origin\":{\"value\":\"https:\/\/www.example.com\"},\"server\":{\"value\":\"CustomOriginServer\"},\"content-length\":{\"value\":\"9593\"},\"content-type\":{\"value\":\"text/html; charset=UTF-8\"}},\"statusDescription\":\"OK\",\"cookies\":{\"loggedIn\":{\"attributes\":\"Secure; Path=/; Domain=example.com; Expires=Wed, 05 Jan 2024 07:28:00 GMT\",\"value\":\"true\"},\"id\":{\"attributes\":\"Expires=Wed, 05 Jan 2024 07:28:00 GMT\",\"value\":\"a3fWa\"}},\"statusCode\":200}}"
4343
}
4444
}
45-
```
45+
```

0 commit comments

Comments
 (0)