W3cubDocs

/Dart 2

UriPolicy constructor

UriPolicy()

Constructs the default UriPolicy which is to only allow Uris to the same origin as the application was launched from.

This will block all ftp: mailto: URIs. It will also block accessing https://example.com if the app is running from http://example.com.

Implementation

factory UriPolicy() => new _SameOriginUriPolicy();

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/UriPolicy/UriPolicy.html