enableCORSWarning property
Whether to emit a warning log when a request is not a CORS "simple request" and will trigger a preflight (OPTIONS) request.
Defaults to true. Set to false to silence the warning in apps that
already handle CORS preflight correctly and find the per-request log
noisy. The enriched error message in DioException.connectionError is
always emitted regardless of this setting.
Implementation
bool enableCORSWarning;