This API provides information about security context used to access other APIs.
The API is available in the WebView::$security
property.
$app = new Boson\Application(); $app->webview->security; // Access to Security API
Your context will most likely be secure if you don't use the
data:
orabout:
protocol schemes
#Current Context
To get the current security status you can use the read-only
$isSecureContext
property.
$isSecure = $app->webview->security->isSecureContext; echo 'Context is ' . ($isSecure ? 'secure' : 'insecure'); // // Expects: Context is secure //