We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e1930c commit ab0f851Copy full SHA for ab0f851
src/components/link-preview/open-graph.jsx
@@ -5,7 +5,7 @@ export default function OpenGraphPreview({ url }) {
5
6
useEffect(() => {
7
async function fetchData() {
8
- const response = await fetch(url);
+ const response = await fetch(`https://corsproxy.io/?${encodeURIComponent(url)}`);
9
const html = await response.text();
10
const doc = new DOMParser().parseFromString(html, 'text/html');
11
0 commit comments