Overview
The Zarna API implements multiple layers of security including CORS policies, rate limiting, input validation, and request authentication.CORS Configuration
Allowed Origins
Best Practices
Whitelist specific origins
Whitelist specific origins
Never use
allow_origins=["*"] with allow_credentials=TrueLimit methods
Limit methods
Only allow needed HTTP methods (GET, POST, PATCH, DELETE)
Restrict headers
Restrict headers
Only expose necessary headers to frontend
