OPTIONS - Get Allowed Methods in HTTP
From the HTTP Methods cheat sheet ยท Other HTTP Methods ยท verified Jul 2026
OPTIONS - Get Allowed Methods
javascript
// OPTIONS request
fetch('/api/users', {
method: 'OPTIONS'
})
// Properties
- Safe: Yes
- Idempotent: Yes
- Cacheable: No
- Body: Optional๐ Discovers API capabilities
โ๏ธ Used for CORS preflight
๐ Returns Allow header