We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc15b35 + 5ec2c82 commit d01799cCopy full SHA for d01799c
articles/static-web-apps/configuration.md
@@ -208,6 +208,18 @@ Some common use cases for global headers include:
208
- Custom caching rules
209
- Enforcing security policies
210
- Encoding settings
211
+- Configuring cross-origin resource sharing ([CORS](https://developer.mozilla.org/docs/Web/HTTP/CORS))
212
+
213
+The following is an example of how to implement a custom CORS configuration.
214
215
+```json
216
+{
217
+ "globalHeaders": {
218
+ "Access-Control-Allow-Origin": "https://example.com",
219
+ "Access-Control-Allow-Methods": "POST, GET, OPTIONS"
220
+ }
221
+}
222
+```
223
224
## Response overrides
225
0 commit comments