【问题标题】:403 Forbidden on one specific page but it still loads correctly?403 Forbidden on a specific page,但仍能正确加载?
【发布时间】:2018-10-02 17:58:24
【问题描述】:

有点奇怪。

我注意到一些查询字符串在我网站上的页面加载时停止工作。检查 chrome 和 firefox 的网络控制台后,我可以看到该页面正在返回 403 禁止错误。这很奇怪,因为页面似乎正在正确加载(除了查询字符串不适用于页面加载)。

这似乎是网站上唯一的页面。

响应标头:

cache-control: no-cache, must-revalidate, max-age=0
cf-cache-status: MISS
cf-ray: 463904819f55a71f-DUB
content-encoding: br
content-type: text/html; charset=UTF-8
date: Tue, 02 Oct 2018 17:51:33 GMT
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
expires: Wed, 11 Jan 1984 05:00:00 GMT
link: <https://ygoprodeck.com/wp-json/>; rel="https://api.w.org/", <https://ygoprodeck.com/?p=7620>; rel=shortlink
pragma: no-cache
server: cloudflare
status: 403
vary: Accept-Encoding,Cookie,User-Agent
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-ua-compatible: IE=edge,chrome=1
x-xss-protection: 1; mode=block

我不确定它是如何同时获得 403 和正确加载的,这很奇怪。

相关页面:https://ygoprodeck.com/deck-search/

【问题讨论】:

    标签: networking http-status-code-403


    【解决方案1】:

    发现问题。

    在我网站的根目录下,我有一个名为“deck-search”的文件夹。不知道它是如何到达那里的,但它引起了问题。删除它修复它。

    【讨论】:

      猜你喜欢
      • 2018-09-03
      • 1970-01-01
      • 1970-01-01
      • 2013-11-01
      • 2019-12-18
      • 2014-10-03
      • 2021-04-23
      • 2015-02-20
      • 1970-01-01
      相关资源
      最近更新 更多