403禁止在特定页面上显示,但仍可以正确加载吗? [英] 403 Forbidden on one specific page but it still loads correctly?

查看:79
本文介绍了403禁止在特定页面上显示,但仍可以正确加载吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个奇数的位.

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

I noticed some query string stopped working on page load for a page on my website. Upon checking the network console of chrome and firefox, I can see that the page is returning a 403 forbidden error. This is odd, since the page seems to be loading correctly (except for query string not applying on page load).

这是网站上唯一正在执行此操作的页面.

It's the only page on the site that seems to be doing it.

响应标题:

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和正确加载,这很奇怪.

I'm not sure how it can both get a 403 and load properly at the same time, very odd.

有问题的页面: https://ygoprodeck.com/deck-search/

推荐答案

发现了问题.

在网站的根目录中,我有一个名为"deck-search"的文件夹.不知道它是怎么到达那里的,但是却引起了问题.删除它修复了它.

On the root of my site, I had a folder called "deck-search". No idea how it got there but it was causing issues. Removing it fixed it.

这篇关于403禁止在特定页面上显示,但仍可以正确加载吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆