defaultPolicy property

CORSPolicy defaultPolicy

The default CORS policy.

You may modify this default policy. All instances of CORSPolicy are instantiated using the values of this default policy. Do not modify this property unless you want the defaults to change application-wide.

Implementation

static CORSPolicy get defaultPolicy {
  if (_defaultPolicy == null) {
    _defaultPolicy = new CORSPolicy._defaults();
  }
  return _defaultPolicy;
}