Http 請求被拒絕(未到達 Nginx)
問題現(xiàn)象
公司管理后臺在調(diào)用 https://xxx/v2/cms/operation/notices/wm/temp/content 接口時,響應數(shù)據(jù)直接返回如下:
Response Headers
Cache-Control: no-cache
Connection: close
Content-Length: 247
Content-Type: text/html; charset=utf-8
Pragma: no-cache
<html>
<head>
<title>Request Rejected</title>
</head>
<body>The requested URL was rejected. Please consult with your administrator.
<br>
<br>Your support ID is: 10119285110654762291
<br>
<br>
<a href='javascript:history.back();'>[Go Back]</a>
</body>
</html>
問題查因
一般來說我們查看問題,會從 Nginx 入手,所以去查了 Nginx 日志,發(fā)現(xiàn)沒有對應輸出。那就說明這個請求沒有到 Nginx。
最終定位原因:公司防火墻策略,將 temp作為關鍵字,攔截了對應請求導致。文章來源:http://www.zghlxwxcb.cn/news/detail-516255.html
解決方案
修改防火墻策略,不攔截 temp 關鍵字。
ps: 在設計接口時規(guī)范化,避免此類字符作為路由路徑。文章來源地址http://www.zghlxwxcb.cn/news/detail-516255.html
到了這里,關于Http請求被拒絕,響應返回 The requested URL was rejected. Please consult with your administrator.的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!