Skip to content

Commit fabe402

Browse files
author
Simona Cotin
authored
update configuration with CORS example
------- cc: @craigshoemaker
1 parent 2f86b6c commit fabe402

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

articles/static-web-apps/configuration.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,16 @@ Some common use cases for global headers include:
208208
- Custom caching rules
209209
- Enforcing security policies
210210
- Encoding settings
211+
- Configuring cross-origin resource sharing ([CORS](https://developer.mozilla.org/docs/Web/HTTP/CORS))
212+
213+
```json
214+
{
215+
"globalHeaders": {
216+
"Access-Control-Allow-Origin": "https://example.com",
217+
"Access-Control-Allow-Methods": "POST, GET, OPTIONS"
218+
}
219+
}
220+
```
211221

212222
## Response overrides
213223

0 commit comments

Comments
 (0)