mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
fix: cors url
This commit is contained in:
1 parent
6b6ee94d9b
commit
44f03a1fce
2 files changed
+4
-7
No files matched your search
@@ -2,6 +2,6 @@ import { context } from './context';
|
||||
|
||||
export function withCORSProxy(url: string) {
|
||||
return context === 'website'
|
||||
? `https://corsproxy.wotblitz.com/?${encodeURIComponent(url)}`
|
||||
? `https://corsproxy.io/?${encodeURIComponent(url)}`
|
||||
: url;
|
||||
}
|
||||
Reference in new issue
Block a user