Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed Jun 15, 2024
1 parent b2635ad commit ff487fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/shared/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,12 @@ if (document.location.search.includes('cors')) {
localStorage.setItem('cors', '1')
}

if (document.location.search.includes('nocors')) {
localStorage.removeItem('cors')
}

const corsAxios = http.create<R.Response<any>>(
localStorage.getItem('cors') == '1' ? '' : 'https://cors-flame.vercel.app/api/cors?url=',
localStorage.getItem('cors') == '1' ? '' : 'https://cors-flame.vercel.app/api/cors?url='
)

export { axios, corsAxios }

0 comments on commit ff487fd

Please sign in to comment.