supportsCrossOrigin property

bool supportsCrossOrigin

Checks to see if the current platform supports making cross origin requests.

Note that even if cross origin requests are supported, they still may fail if the destination server does not support CORS requests.

Source

static bool get supportsCrossOrigin {
  return true;
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/HttpRequest/supportsCrossOrigin.html