Security API
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
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
//
15 May 2025