References Getting Started Getting Started Architecture Architecture Application Application Window Window WebView WebView Deployment Deployment Components Components Framework Integrations Framework Integrations Examples Examples Community Community github GitHub github Get Started arrow_up_right
Getting Started Getting Started Architecture Architecture Application Application Window Window WebView WebView Deployment Deployment Components Components Framework Integrations Framework Integrations Examples Examples Community Community

WebView

WebView Configuration Events Schemes API Bindings API Data API Scripts API Web Components API Battery API Network API Security API Getting Started Architecture Application Window WebView Deployment Components Framework Integrations Examples Community

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

Your context will most likely be secure if you don't use the data: or about: 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
//
github discord telegram Get started Documentation Contribution Guide License Release Notes BOSON PHP © 2025. All Rights Reversed.