Skip to content

Commit

Permalink
Merge pull request AdobeDocs#190 from AdobeDocs/jh_cors_update
Browse files Browse the repository at this point in the history
CORS `origin` clarification
  • Loading branch information
jhadobe authored Feb 20, 2024
2 parents a678dd6 + 1c21e3e commit 66be290
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/pages/gateway/headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,22 @@ To add CORS headers to your mesh, create a `CORS` object in the `responseConfig`
- `credentials` - a boolean value that indicates if credentials can be included in CORS request (default: `false`)
- `exposedHeaders` - a comma-delimited CORS request that contains headers to expose
- `maxAge` - the maximum number of seconds the preflight response (the values of the `origin` and `methods` headers) can be cached

When specifying a CORS `origin`, list all applicable origins. Do not enter `*` for the value as this will return the request's origin.

```JSON
"CORS": {
"maxAge": 60480,
"methods": [
"GET",
"POST",
"PUT",
"HEAD",
"OPTIONS"
],
"origin": ["<origin1>", "<origin2>"]
}
```

```json
{
Expand Down

0 comments on commit 66be290

Please sign in to comment.