V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
edis0n0
V2EX  ›  程序员

反代时设置什么请求头可以限制 cookies 必须匹配全域名?

  •  
  •   edis0n0 · Oct 30, 2022 · 987 views
    This topic created in 1285 days ago, the information mentioned may be changed or developed.

    需求完全禁止跨域,同域名的不同子域名也不行。 例如 aaa.example.com 只能访问和设置作用域为 aaa.example.com 的 cookies ,而不能访问和设置 example.combbb.example.com 的 cookies 。 如果有 nginx 配置能把写到其它子域名下的 cookies 全重写作用域到本域名更好。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   930 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 21:13 · PVG 05:13 · LAX 14:13 · JFK 17:13
    ♥ Do have faith in what you're doing.