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

More HTTP tasks

Back to the full HTTP Methods cheat sheet