/
). 前端通过API与后端对话。前端和所有路由都通过https提供服务。
一切都通过https工作:资产和API调用。除了一条将其请求重定向到http的路由之外。它是一个搜索函数,所以起初我认为它可能是我用于搜索的客户端库,但如果我将XHR请求复制为CURL并从终端启动它,我也会得到重定向:
Request:
curl 'https://theapp/?search=mak' -H 'Accept: application/json, text/plain, */*' -H 'Referer: https://theapp/' -H 'X-XSRF-TOKEN: the-token -H 'X-Requested-With: XMLHttpRequest'
Response:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="http://theapp?search=mak">here</a>.</p>
<hr>
<address>Apache/2.4.25 (Ubuntu) Server at theapp Port 80</address>
</body></html>
APP_URL
也设置为https URL。
我联系了Fortrabbit团队,但他们坚称他们没有将任何内容重定向到http。除了请求之外,我在日志中也没有看到任何内容。
有人知道这是什么原因吗?