Skip to content

Commit 006e1c5

Browse files
authored
Merge pull request #7 from html-preview/privacy-warn
Add privacy warnings
2 parents 259d7d4 + 56e9abf commit 006e1c5

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@ SPDX-License-Identifier: Apache-2.0
1717
Allows to render HTML files on git forges (like GitHub) in your browser,
1818
without cloning or downloading.
1919

20-
**NOTE**
21-
Freely hosted [CORS][CORS] (Cross-origin resource sharing) proxies -
20+
> [!warning]
21+
> Freely hosted [CORS][CORS] (Cross-origin resource sharing) proxies -
2222
like the ones used by this script -
23-
are a potential security risc!
23+
are a potential **security risk!**
24+
25+
> [!warning]
26+
> If a script stores sensitive data (as cookie, `localStorage`, etc...), then **other repos you open will also have access** to this data.
27+
>
28+
> How to avoid risk:
29+
> - Don't input sensitive data while previewing
30+
> - Clear all site data after previewing a repo
2431
2532
Currently supported git forges:
2633

index.html

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@
4040
<body>
4141
<form id="previewform" onsubmit="location.href='/?url='+this.file.value;return false">
4242
<h1>Git-Forge HTML Preview</h1>
43+
<p>
44+
<strong>⚠️ WARNING ⚠️</strong>
45+
<br>
46+
Please read
47+
<a href="https://github.com/html-preview/html-preview.github.io/blob/d1478a9f702fb28f1295f371e3c87ba4f1b229c2/README.md">the warnings contained here</a>
48+
</p>
4349
<p>
4450
Enter URL of the HTML file to preview:
4551
<input type="url" id="file" value="" placeholder="e.g. https://github.com/user/repo/blob/master/index.html" size="60" autofocus>

0 commit comments

Comments
 (0)