p3p-header解决跨域访问cookie

P3P header允许跨域访问隐私数据,从而可以跨域set-cookie成功

header("P3P: CP=CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR");

P3P 是 The Platform for Privacy Preferences 的简称 更多具体的内容可以参阅W3C的标准 http://www.w3.org/TR/P3P/

原文地址:https://www.cnblogs.com/kennyhr/p/3432823.html