|
@@ -58,14 +58,14 @@ router.post('/testApi', function(req, res, next) {
|
|
// 创建向后端服务器的请求
|
|
// 创建向后端服务器的请求
|
|
const options = {
|
|
const options = {
|
|
hostname: 'cxcy.ssti.net.cn',
|
|
hostname: 'cxcy.ssti.net.cn',
|
|
- port: 443,
|
|
|
|
path: "/sso/api",
|
|
path: "/sso/api",
|
|
- method: 'GET', // 请求方法
|
|
|
|
- headers: req.headers
|
|
|
|
|
|
+ method: 'GET' //, // 请求方法
|
|
|
|
+ //headers: req.headers
|
|
};
|
|
};
|
|
|
|
|
|
// 发送HTTP请求
|
|
// 发送HTTP请求
|
|
const backendReq = https.request(options, (res) => {
|
|
const backendReq = https.request(options, (res) => {
|
|
|
|
+ console.log(res)
|
|
let data = '';
|
|
let data = '';
|
|
|
|
|
|
// 接收响应数据
|
|
// 接收响应数据
|