出现文字: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)
1244 0
The request you have made requires authentication. (HTTP 401)
|
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解决办法
2785 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>‘...
805 0
|
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
369 0
Mixed Content: The page at was loaded over HTTPS, but requested an insecure imag
|
Web App开发 JavaScript 安全
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
193 0
Please open the about:config page and disable the "security.fileuri.strict_origin_policy" option
|
应用服务中间件
tomcat Note: further occurrences of HTTP header parsing errors will be logged at DEBUG
tomcat Note: further occurrences of HTTP header parsing errors will be logged at DEBUG
1036 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在这里插入图片描述
2082 0
|
Web App开发 缓存 开发者
Provisional headers are shown in Chrome network tab
Provisional headers are shown in Chrome network tab
226 0
Provisional headers are shown in Chrome network tab
|
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.
6963 0
|
Java 安全 网络安全
请求https错误: unable to find valid certification path to requested target
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/catoop/article/details/51155224 错误及原因 当Java客户端请求实现https协议的服务时,出现异常:’unable to find valid certification path to requested target’ 是因为服务期端的证书没有被认证,需要做的是把服务端证书导入到Java keystore。
8200 0