You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

.NET 6中如何获取特定域名下Cookie的GLBID值用于接口认证?

认证流程与接口访问步骤
  • 嵌入登录页面
    前端通过以下iframe嵌入Globo登录页面完成用户认证:
<iframe src="https://login.globo.com/login/438?url=http://globoesporte.globo.com/cartola-fc/&tam=WIDGET" style="height: 100%; width : 100%;"></iframe>
  • 提取GLBID Cookie值
    用户在iframe内完成认证操作后,浏览器Cookie中会生成GLBID键值对,需提取该键对应的具体值。

  • 设置请求头访问认证端点
    将提取到的GLBID值放入请求头的X-GLB-Token字段中,即可访问需要认证的目标接口端点。

内容的提问来源于stack exchange,提问作者jadirpuppin

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.19 18:01:11