cookies arent在< iframe>内部跟踪

发布于 2025-01-22 12:12:08 字数 944 浏览 3 评论 0原文

我有一个带有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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文