出现文字:Stack Overflow requires cookies for authentication -- are your browser cookies enabled for this

简介: 出现文字:Stack Overflow requires cookies for authentication -- are your browser cookies enabled for this

一、出现错误的场景


打开stackOverFlow登录时,突然出现一整片白色空白和如下一段文字:


出现文字:Stack Overflow requires cookies for authentication -- are your browser cookies enabled for this domain?


有道翻译:Stack Overflow需要cookie进行身份验证——您的浏览器是否为此域启用了cookie ?


二、错误的原因:

部分用户为了避免隐私泄露会在它们的浏览器中禁用cookie。因此,在js代码使用cookie前,首先要确保cookie是启用的。判断浏览器的cookie是否开启,需要用到浏览器Navigator对象,cookieEnabled属性可返回一个布尔值,如果浏览器启用了cookie,该属性值为true。如果禁用了cookie,则值为false。


三、解决办法

1.清除缓存

2.进行隐私设置

①浏览器右上角三个横线的图标(设置),进入点击隐私设置。


②foxfire浏览器,使用“Ctrl + Shift + p",跳转到一个新网页 【着重讲第二个】


此时进入了隐私设置的界面,继续登录。

【注:如果是第一次记得是“sign up”而不是“log in”因为此时你还未在这个网站注册过,因此在你无数次输入Email和password时,会报错: An error occurred with log in. No user found with matching email】

成功注册之后,你所登录的邮箱会收到一封确认信,你需要进行验证

出现如下界面,你就成功注册了【注:注册成功后,需再次登录“log in”】


我们发现再第一次点开这个网站时,页面最上端有一段文字“Stack Overflow requires external JavaScript from another domain, which is blocked.."? ”


相关文章
|
开发工具 数据安全/隐私保护
The request you have made requires authentication. (HTTP 401)
The request you have made requires authentication. (HTTP 401)
1372 0
The request you have made requires authentication. (HTTP 401)
Please enter your authorization code to login. More information in http://service.mail.qq.com/
Please enter your authorization code to login. More information in http://service.mail.qq.com/
171 0
|
Java Spring
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
3532 1
Initialization failed for ‘https://start.spring.io‘ Please check URL, network and proxy settings解决办法
|
JavaScript 网络安全
Mixed Content: The page at ‘<URL>‘ was loaded over HTTPS, but requested an insecure frame ‘<URL>‘...
Mixed Content: The page at ‘<URL>‘ was loaded over HTTPS, but requested an insecure frame ‘<URL>‘...
971 0
|
应用服务中间件 Linux BI
Tomcat部署iframe出现Refused to display ‘url‘ in a frame because it set ‘X-Frame-Options‘ to ‘deny‘无法访问问题
Tomcat部署iframe出现Refused to display ‘url‘ in a frame because it set ‘X-Frame-Options‘ to ‘deny‘无法访问问题
739 0
Tomcat部署iframe出现Refused to display ‘url‘ in a frame because it set ‘X-Frame-Options‘ to ‘deny‘无法访问问题
|
Web App开发 安全 前端开发
Mixed Content: The page at was loaded over HTTPS, but requested an insecure imag
Mixed Content: The page at was loaded over HTTPS, but requested an insecure imag
465 0
Mixed Content: The page at was loaded over HTTPS, but requested an insecure imag
|
Web App开发 安全
Not allowed to navigate top frame to data URL
Not allowed to navigate top frame to data URL
326 0
|
Web App开发 网络安全
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute
Indicate whether to send a cookie in a cross-site request by specifying its SameSite attribute在这里插入图片描述
2125 0
|
Web App开发 应用服务中间件 nginx
错误:Mixed Content: The page at 'https://a.b.com/detail?id=5' was loaded over HTTPS, but reque
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/catoop/article/details/70247993 关于这个错误的详细内容为: Mixed Content: The page at 'https://a.
7082 0
|
Windows
Windows Live Writer 配置报407 Proxy Authentication Required错误
在Windows 7 专业版上面安装Windows Live Writer后(版本号:14.0.8117.416),配置博客服务过程中报错(如下图所示)       错误信息为:407 Proxy Authentication Required(The ISA Server requires authorization to fullfill the request.
1181 0