Skip to content

Commit 5a2dcec

Browse files
committed
Add big warning
1 parent 96f85a4 commit 5a2dcec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ It's more than likely there is nothing wrong with the library:
2626
- If the target website does not have OpenGraph tags **the preview will most likely fail**, there are some fallbacks but in general, it will not work
2727
- **You cannot preview (fetch) another web page from YOUR web page. This is an intentional security feature of browsers called CORS**
2828

29+
<h1>DO NOT FETCH CONTENT DIRECTLY FROM A USERS DEVICE. ONLY RUN THIS IN YOUR SERVER AND SANDBOX IT IF YOU CAN</h1>
30+
Browsers block this via cors, but you might be clever like a fox and run this in React Native. This is a bad idea, you are exposing the device user to potentially malicious links
31+
2932
If you use this library and find it useful please consider [sponsoring me](https://github.com/sponsors/ospfranco), open source takes a lot of time and effort.
3033

3134
# Link Preview

0 commit comments

Comments
 (0)