feat: CORS proxy for neighbors

This commit is contained in:
TrèsAbhi committed 2023-11-13 21:52:21 -06:00
1 parent 4f62a594b3
commit 15bf02f829
3 files changed
+13 -18

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import { context } from './context';
export function withCORSProxy(url: string) {
return context === 'website'
? `https://corsproxy.io/?${encodeURIComponent(url)}`
: url;
}