BentoML

CORS preflight failures block cross-origin API access

warning
configurationUpdated Mar 7, 2026(via Exa)
Technologies:
How to detect:

When BentoMLContainer.http.cors.enabled is false or misconfigured, browsers receive CORS errors during preflight OPTIONS requests, preventing web applications from accessing the API endpoints.

Recommended action:

Enable CORS via BentoMLContainer.http.cors.enabled configuration. Verify allowed origins, methods, and headers match your client requirements. Check browser console for specific CORS error messages indicating missing headers.