简体   繁体   English

仅使用父 url 的 3rd 方 cookie 检测

[英]3rd party cookie detection using parent url only

Is it possible to detect whether 3rd party cookie is enabled or disabled in a browser setting simple from visiting a site?是否可以通过访问网站来检测浏览器设置中是否启用或禁用了 3rd 方 cookie?

Lets say I have a hosted gitpage and I want to detect whether my 3rd party cookie is enabled or disabled via an alert or a console (limitation is that the html page does not have any other hosted url of a different domain within it).假设我有一个托管的 gitpage,我想通过警报或控制台检测我的 3rd 方 cookie 是启用还是禁用(限制是 html 页面没有任何其他托管的 url 在其中)。 Would it still be able to detect just by using the parent domain url?仅使用父域 url 是否仍然能够检测到?

You will not be able to detect 3rd party cookie support, without actually trying to set a 3rd party cookie and read it again, so if you only control a single domain in the scenario you are working in, you are out of luck.您将无法检测到 3rd 方 cookie 支持,而无需实际尝试设置 3rd 方 cookie 并再次读取它,因此,如果您在工作的场景中只控制一个域,那么您就不走运了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM