mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
feat: use corsproxy.io
This commit is contained in:
1 parent
81c2ca80bc
commit
6b6ee94d9b
8 files changed
+20
-34
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { context } from './context';
|
||||
|
||||
export function withCORSProxy(url: string) {
|
||||
return context === 'website'
|
||||
? `https://corsproxy.wotblitz.com/?${encodeURIComponent(url)}`
|
||||
: url;
|
||||
}
|
||||
Reference in new issue
Block a user