简体   繁体   English

在Safari中将您的网站归类为“第一方”

[英]Get your website classified as 'first-party' in Safari

I'm running into a major issue with Safari compatibility for my website. 我的网站与Safari兼容性存在重大问题。 It's not an error per say, but apparently Safari classifies my website as 'third party'. 这并不是说错,但显然Safari将我的网站归类为“第三方”。

This means, that for me to set cookies (which is 100% necessary for my web app to run), the user needs to open up Safari preferences, click to 'Privacy' and opt-out of Safari's default setting. 这意味着,对于我来说,要设置cookie(这是我的Web应用程序运行所必需的100%),用户需要打开Safari偏好设置,单击“隐私”,然后选择退出Safari的默认设置。 They need to set Safari's cookie policy from 'Block cookies from third parties' to 'Never block cookies'. 他们需要将Safari的Cookie策略从“阻止第三方Cookie”设置为“从不阻止Cookie”。

This is a terrible experience and means that probably most users who use Safari on my site will just navigate away because it's not working. 这是一种糟糕的体验,并且可能意味着大多数在我的网站上使用Safari的用户都将因为无法正常工作而离开。 I could pop up an info graphic to walk the user through the process, but come on... Most every other major browser (chrome, firefox, etc) takes an opposite stance and default to accepting all cookies. 我可以弹出一个信息图形来引导用户完成此过程,但是请继续...大多数其他主流浏览器(chrome,firefox等)采取相反的立场,默认情况下接受所有cookie。

Is there some application process to Apple that will get my website classified as 'first party'? 苹果是否有一些申请程序会将我的网站归类为“第一方”? Does it have something to do with SSL? 它与SSL有关吗? Is it a CORS issue? 这是CORS问题吗?

How do I get classified as a 'first party' website? 我如何被分类为“第一方”网站?

I think there is a conceptual misunderstanding here. 我认为这里存在概念上的误解。 A web site isn't first-party or third-party by itself, and there isn't some kind of list of these maintained by Apple. 网站本身不是第一方或第三方,Apple也没有这些列表。 It is the third party in a specific context. 它是特定情况下的第三方。 When Safari blocks third-party cookies, what that means is that website www.aaa.com (the site the user is visiting) can't set (or retrieve) a cookie for www.bbb.com (a third party to the transaction between the user and www.aaa.com). 当Safari阻止第三方Cookie时,这意味着www.aaa.com网站(用户访问的网站)无法为www.bbb.com(交易的第三方)设置(或检索)cookie。在用户和www.aaa.com之间)。 I suspect you are doing something involving an iframe or otherwise including elements from one domain in a web page on another domain, and that is the source of the problem. 我怀疑您正在执行涉及iframe或以其他方式包含来自另一个域的网页中一个域的元素的操作,这就是问题的根源。

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

相关问题 第三方JS可以访问第一方本地存储吗? - Can a third-party JS access first-party localstorage? 第三方脚本可以设置第一方cookie吗? - Can a third-party script set a first-party cookie? 适用于公共第一方客户的适当OAuth2流程 - Proper OAuth2 flow for public first-party clients 从 npm 本地导入 ES 模块依赖,无需捆绑/转译第一方源 - Natively import ES module dependencies from npm without bundling/transpiling first-party source 获取请求您的js文件的网站的引荐来源 - get referer of website that is requesting your js file JS - 获取当前网站名称(与Safari类似) - JS - Get Current Website Name (Similar To Safari) 如何让您的网站访问者关注您网站上的Twitter帐户 - How to get your website visitors to follow twitter accounts from your website 用javascript获取Safari浏览器的cookie和网站数据模式是不可能的? - Impossible to get Safari browser's cookies and website data mode with javascript? 输入type =“ file”从网站而不是您的计算机获取文件 - Input type=“file” get a file from website instead of your computer 第三方网站上的JavaScript - JavaScript on third party website
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM