Skip to content

Commit 027df38

Browse files
committed
Add PATCH to allowed CORS methods
1 parent 0195dde commit 027df38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/api/src/middleware/security-headers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ALLOWED_ORIGIN_PATTERNS = [
88
/^http:\/\/localhost(:\d+)?$/,
99
]
1010

11-
const CORS_METHODS = 'GET, POST, PUT, DELETE, OPTIONS'
11+
const CORS_METHODS = 'GET, POST, PUT, PATCH, DELETE, OPTIONS'
1212
const CORS_HEADERS = 'Authorization, Content-Type, X-Request-Id, Idempotency-Key'
1313
const CORS_EXPOSE =
1414
'X-Request-Id, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-Replay-Access'

0 commit comments

Comments
 (0)