credentials property

RequestCredentials? get credentials

A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.

Implementation

_i3.RequestCredentials? get credentials => switch (_i4.getProperty(
      this,
      'credentials',
    )) {
      _i2.String name => _i3.RequestCredentialsOptions.values.byName(name),
      _ => null
    };
set credentials (RequestCredentials? value)

Implementation

set credentials(_i3.RequestCredentials? value) {
  _i4.setProperty(
    this,
    'credentials',
    value?.name ?? _i6.undefined ?? _i6.undefined,
  );
}