This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Proxies http(s) requests to any endpoint even if doesn't allow CORS */ | |
import axios from 'axios' | |
import qs from 'qs' | |
import https from 'https' | |
import http from 'http' | |
import fetch from 'node-fetch' | |
// Serialize query params that represents object with props | |
axios.defaults.paramsSerializer = params => qs.stringify(params) |