hasCORS property
bool
hasCORS
Returns true
if this response has CORS
(Cross-origin Resource Sharing) headers set.
Implementation
bool get hasCORS =>
getHeader('Access-Control-Allow-Origin') != null ||
getHeader('Access-Control-Allow-Methods') != null;