Skip to content

Fix WebView2 file: URL security origin warning#944

Merged
albertospelta merged 1 commit intomainfrom
alberto/patch-virtual-host-mapping
Mar 18, 2026
Merged

Fix WebView2 file: URL security origin warning#944
albertospelta merged 1 commit intomainfrom
alberto/patch-virtual-host-mapping

Conversation

@albertospelta
Copy link
Member

Replace file:// navigation with SetVirtualHostNameToFolderMapping using the 'bravo.example' virtual host (RFC 6761 reserved TLD). This eliminates the Chromium security warning file: URLs are treated as unique security origins that appeared in the WebView2 console at startup.

Replace file:// navigation with SetVirtualHostNameToFolderMapping using the 'bravo.example' virtual host (RFC 6761 reserved TLD). This eliminates the Chromium security warning "file: URLs are treated as unique security origins"
that appeared in the WebView2 console at startup.
@albertospelta albertospelta merged commit 3cf38ab into main Mar 18, 2026
1 check passed
@albertospelta albertospelta deleted the alberto/patch-virtual-host-mapping branch March 18, 2026 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant