• 请不要在回答技术问题时复制粘贴 AI 生成的内容
edis0n0
V2EX  ›  程序员

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

  •  
  •   edis0n0 · Oct 30, 2022 · 1114 views
    This topic created in 1365 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   ·   2794 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 05:51 · PVG 13:51 · LAX 22:51 · JFK 01:51
    ♥ Do have faith in what you're doing.