|
|
@@ -43,9 +43,6 @@ exports.get = async (url, token = null) => {
|
|
|
*/
|
|
|
exports.post = async (url, data, token= null, config = {}) => {
|
|
|
let response
|
|
|
- const agent = new https.Agent({
|
|
|
- rejectUnauthorized: false,
|
|
|
- })
|
|
|
if (coba.decrypt(process.env.CXQSB) === PRODUCTION && token) {
|
|
|
response = await axios.post(url, data,{
|
|
|
headers: {
|
|
|
@@ -53,7 +50,6 @@ exports.post = async (url, data, token= null, config = {}) => {
|
|
|
Accept: 'application/json',
|
|
|
...config
|
|
|
},
|
|
|
- httpsAgent: agent
|
|
|
})
|
|
|
} else {
|
|
|
let token = process.env.XNX1Q
|