Skip to content

Commit a5cccf4

Browse files
committed
docs(cors): list the explicit default methods array
- Replace all HTTP methods wording with the concrete method list
1 parent 6942d83 commit a5cccf4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/id/middleware/cors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Setiap opsi punya default, jadi `Mware.cors()` tanpa argumen mengizinkan origin
139139
| Opsi | Default |
140140
| ---------------- | -------------------------------------------------- |
141141
| `origin` | `'*'` |
142-
| `methods` | semua metode HTTP |
142+
| `methods` | `['DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT']` |
143143
| `allowedHeaders` | `['Content-Type', 'Authorization', 'X-Requested-With']` |
144144
| `exposedHeaders` | `[]` |
145145
| `credentials` | `false` |

docs/middleware/cors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Every option has a default, so `Mware.cors()` with no arguments allows any origi
139139
| Option | Default |
140140
| ---------------- | -------------------------------------------------- |
141141
| `origin` | `'*'` |
142-
| `methods` | all HTTP methods |
142+
| `methods` | `['DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT']` |
143143
| `allowedHeaders` | `['Content-Type', 'Authorization', 'X-Requested-With']` |
144144
| `exposedHeaders` | `[]` |
145145
| `credentials` | `false` |

0 commit comments

Comments
 (0)