withCredentials property

bool get withCredentials

True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.

When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.

MDN Reference

Implementation

_i2.bool get withCredentials => _i4.getProperty(
      this,
      'withCredentials',
    );
set withCredentials (bool value)

Implementation

set withCredentials(_i2.bool value) {
  _i4.setProperty(
    this,
    'withCredentials',
    value,
  );
}