getCurrentOrigin method

  1. @override
String getCurrentOrigin()
override

It retrieves the current origin for the current location

Implementation

@override
String getCurrentOrigin() {
  return html.window.location.origin;
}