mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Migrate from cookies to headers for scam tokens and bypassing rate limits Resolves #3092
13 lines
408 B
TypeScript
13 lines
408 B
TypeScript
import config from 'configs/app';
|
|
|
|
export default function isNeedProxy() {
|
|
if (config.app.useProxy) {
|
|
return true;
|
|
}
|
|
|
|
// ONLY FOR DEV OR REVIEW ENVIRONMENTS (NOT PRODUCTION)
|
|
// because we have some resources that require credentials, we need to use the proxy
|
|
// otherwise the cross-origin requests with "credentials: include" will be blocked
|
|
return config.app.isDev || config.app.isReview;
|
|
}
|