Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs/References/webview Tag.md: allownw clarity and security emphasis #8128

Open
wants to merge 1 commit into
base: nw80
Choose a base branch
from

Conversation

RandyMcMillan
Copy link

add grammar clarity and emphasize WebView trust concerns.

add grammar clarity and emphasize WebView trust concerns.
@@ -60,7 +60,7 @@ and add 'partition="trusted"' attribute to the webview tag.

### Node.js support in webview

To enable Node.js support in WebView, add the `allownw` attribute to the webview tag. Then Node.js will be turned on, no matter it loads local file or remote site. Use this feature with caution because webview is normally supposed to load untrusted contents.
To enable Node.js support in WebView, add the `allownw` attribute to the webview tag. Then Node.js will be enabled while loading local files or a remote site. Use this feature with CAUTION! Any security concerns MUST be handled by the developer.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
To enable Node.js support in WebView, add the `allownw` attribute to the webview tag. Then Node.js will be enabled while loading local files or a remote site. Use this feature with CAUTION! Any security concerns MUST be handled by the developer.
To enable Node.js support in WebView, add the `allownw` attribute to the webview tag. Then Node.js will be enabled while loading local files or a remote site.
!!! Warning
Use this feature with caution. Any security concerns must be handled by the developer.

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.

None yet

2 participants