解析包含 # 的 URL 使用 Iris 框架

huangapple go评论67阅读模式
英文:

Pars url contain # with Iris framework

问题

微软图形身份验证响应的URL包含#字符,如下所示:

http://localhost:8000/auth/outlook#code=xxxxxxxxxxxxxxxxxxxxxxx

问题是通过iris框架解析此URL并检索代码。我应该如何定义URL结构以及如何解析完整的URL?

英文:

The microsoft graph authentication response has a url containing # character like below

http://localhost:8000/auth/outlook#code=xxxxxxxxxxxxxxxxxxxxxxx

The problem is to parsing this URL by iris framework and retrieve the code. How should i define the URL structure and how to pars the full URL?

答案1

得分: 2

片段标识符完全在客户端上处理。它们从一开始就不会被发送到服务器。因此,你无法在服务器上处理它们。

英文:

Fragment identifiers are processed purely on the client. They are never sent to the server in the first place. Therefore, you cannot process them on the server.

huangapple
  • 本文由 发表于 2022年2月5日 17:11:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/70996618.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定