webview2-winui
Embed Web Content in WinUI 3 with WebView2
Embedding web interfaces in Windows desktop apps requires careful initialization, messaging, and asset packaging. This skill guides WebView2 integration with local content mapping and explicit security boundaries.
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "webview2-winui" from https://skillstore.io/skills/shreyam1008-webview2-winui.md and its manifest at https://skillstore.io/api/skills/shreyam1008-webview2-winui/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「webview2-winui」を使用しています。 My local dashboard fails when Source is configured in XAML. What should change?
期待される結果:
- Initialize CoreWebView2 before configuring the virtual host mapping.
- Map the built asset folder with cross-origin access denied, then navigate to the mapped index page.
- Handle initialization exceptions and navigation failures with an application-owned retry state.
「webview2-winui」を使用しています。 Review the security requirements for my embedded web command bridge.
期待される結果:
- Accept messages only from the intended HTTPS origin and default port.
- Reject malformed payloads and enforce size, shape, and command permission checks before native work.
- Check the current document origin before sending sensitive data, and restrict navigation and new windows.
「webview2-winui」を使用しています。 How should I prepare web assets for a WinUI desktop release?
期待される結果:
- Build the web project before MSBuild evaluates asset content items.
- Include built assets in build and publish output, then verify the packaged index page exists.
- Use clean release staging to prevent removed assets from remaining in the package.
セキュリティ監査
安全All 56 static findings are false positives involving Markdown formatting, local virtual-host URLs, documentation references, or fixed project paths. The skill explains origin validation, command authorization, and minimal cross-origin access for WebView2 integration. No evidence found of prompt injection, credential theft, unauthorized reconnaissance, or data exfiltration.
リスク要因
⚙️ 外部コマンド (42)
🌐 ネットワークアクセス (7)
📁 ファイルシステムへのアクセス (1)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/shreyam1008-webview2-winui/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/shreyam1008-webview2-winui?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/shreyam1008-webview2-winui?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/shreyam1008-webview2-winui/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/shreyam1008-webview2-winui.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学術引用 (APA · BibTeX · CFF)
APA形式の引用
shreyam1008. (2026). webview2-winui security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/shreyam1008-webview2-winui/audits/1BibTeX形式の引用
@techreport{shreyam1008-shreyam1008-webview2-winui-2026,
author = {shreyam1008},
title = {webview2-winui security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/shreyam1008-webview2-winui/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "webview2-winui security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "shreyam1008"
date-released: "2026-10-02"
url: "https://skillstore.io/skills/shreyam1008-webview2-winui/audits/1"
identifiers:
- type: other
value: "skillstore:shreyam1008-webview2-winui:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 中作成できるもの
Add a web dashboard to a desktop app
Host a React or Vite dashboard in WinUI 3 using local asset mapping and controlled initialization.
Design a restricted native message bridge
Plan message types, source validation, payload limits, and authorized native commands for an embedded web interface.
Package web assets for desktop releases
Review build ordering, MSBuild content items, release staging, and packaged asset verification.
これらのプロンプトを試す
Explain how WebView2 hosts local web assets in WinUI 3 using virtual host mapping. Include initialization order and cross-origin access settings.
Help integrate WebView2 into my WinUI 3 page. Use my supplied XAML and C# to plan initialization, loading feedback, and navigation failure handling.
Review my supplied WinUI project and web build configuration. Check asset build ordering, output paths, publish copying, and stale asset handling.
Review my supplied WebView2 message handlers and navigation rules. Check source origins, ports, payload bounds, command authorization, and sensitive outbound data.
ベストプラクティス
- Initialize CoreWebView2, configure local host mapping, and navigate only after setup succeeds.
- Enforce origin checks, payload validation, and per-command authorization at the native message boundary.
- Verify packaged assets and benchmark startup, memory, and media behavior against the deployed runtime.
回避
- Setting Source in XAML before virtual host mapping is configured.
- Exposing broad native object graphs without origin checks and command authorization.
- Publishing without verifying built assets or removing stale release files.
よくある質問
What does this skill cover?
Does it build a complete application automatically?
Can I use it for a browser-only React application?
How are local web assets loaded?
Does web messaging require security checks?
Are the examples ready for production without changes?
開発者情報
作成者
shreyam1008ライセンス
MIT
Skillstore リビジョン
r1
バージョンに関する注意
作者はバージョンを宣言していません。
参照
bbec03cf10354f3aaccd6dd24eda4ac9ceeceac5
メンテナンスの新しさ
2026/10/2
利用状況
0 ダウンロード · 0 閲覧
ファイル構成
📄 SKILL.md