我有一个apps服务器的https代理 apache服务器位于https://localhost:444
的节点代理后面var httpsServer = https.createServer(options, function(req, res) {
sslproxy.web(req, res, {
target: "https://localhost:444"
});
}).listen(443);
当我使用浏览器浏览时,内容呈现正常。但是,如果我使用redleg fileviewer https://aw-snap.info/file-viewer/或google抓取来获取页面,则内容为空,如:
HTTP / 1.1 200 OK
日期:2017年12月20日星期三22:05:33 GMT
服务器:Apache / 2.4.25(Debian)
set-cookie:ct_cookies_test = aeeeadff0ae23e02715de88576a89e37;路径= /
x-frame-options:SAMEORIGIN
content-length:0
连接:关闭
content-type:text / html; charset = UTF-8
关于为什么内容长度返回0,但使用浏览器渲染的任何想法都可以吗?
答案 0 :(得分:0)
我在响应中看到“x-frame-options:SAMEORIGIN”,所以我猜CORS是正确答案。