origins method

dynamic origins([
  1. String? v
])

Sets the allowed origins for requests.

Implementation

dynamic origins([String? v]) {
  if (v == null || v.isEmpty) return _origins;

  _origins = v;
  return this;
}