cookies arent在< iframe>内部跟踪
我有一个带有iframe的页面,在iframe中,我每当尝试做某事时登录后都有一个登录
。
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0"/>
<style>
body, html
{
margin: 0; padding: 0; height: 700px;; overflow: hidden; top: -51px;
}
iframe
{
position:absolute; left: 0; right: 0; bottom: 0; top: -51px; width: 100%; height: 700px;
}
</style>
<body>
<div class="tinted-image"></div>
<iframe src="https://teampablotips.wixsite.com/pabloteam" style="border:none;" title="Iframe Example"></iframe>
</body>
</html>
部分 味道=巧克力; samesite = none; 在某个地方,但我不知道在这里输入
我知道我需要设置它,以便cookie工作,但我不确定IV一直在寻找一段时间,我找不到一个求婚的答案足够多,因为我还不了解有关网站后端的所有信息 如果有人可以向我解释我该如何解决,这将不胜感激
I have a page with a iframe in it and in that iframe theres a login section after i login whenever i try to do something it asks me to login again
Iframe code:
<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width,height=device-height,initial-scale=1.0"/>
<style>
body, html
{
margin: 0; padding: 0; height: 700px;; overflow: hidden; top: -51px;
}
iframe
{
position:absolute; left: 0; right: 0; bottom: 0; top: -51px; width: 100%; height: 700px;
}
</style>
<body>
<div class="tinted-image"></div>
<iframe src="https://teampablotips.wixsite.com/pabloteam" style="border:none;" title="Iframe Example"></iframe>
</body>
</html>
i have seen that i need to put Set-Cookie: flavor=choco; SameSite=None;
somewhere but i dont know whereenter code here
i know i need to set it so cookies work but im not sure how iv been looking for a while and i cant find a nooby enough answer since i dont know everything about website backend yet
if anyone could explain to me how do i fix this it would be appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论