Comments (5)
获取你自己的网址,拼接code,state,最终 location.href = "http://你自己的/ ?code=xxx&state=xxxx"
from getweixincode.
获取你自己的网址,拼接code,state,最终 location.href = "http://你自己的/ ?code=xxx&state=xxxx"
@Jonnywang 应该是你这个意思, 最终的回调地址应该是自己拼接返回去,由于有多个地方调用,所以返回的地址应该不能固定,应该根据state去判断或者其他方式,我只是好奇为什么 GWC.urlParams['redirect_uri'] 代码这样可以?
from getweixincode.
了解下公众号的跳转流程就明白这个意思了
from getweixincode.
GWC.urlParams['redirect_uri'] 为什么拿到的都是undefined
from getweixincode.
@zhaoyou 第一次进入get-weixin-code.html
页面的时候, 带的redirect_uri
参数 被包含在 location.href
中发送给微信了,所以在微信回调地址中,依然保留者redirect_uri
参数
from getweixincode.
Related Issues (20)
- 这个URL是对外的,跳转地址可以自定义,如果被恶意利用了怎么办? HOT 1
- 嵌入公众号问题 HOT 2
- 使用的时候部分客户端会出现code been used, "errcode":40163 HOT 1
- 授权回调域名校验出错
- redirect_url 多参数的情况是不是不适用呢 HOT 5
- 二次获取access_token问题 HOT 1
- ios新版本是否不可用 HOT 1
- 这样跳转以后,不出现微信获取信息确认页面了? HOT 1
- 如何解决「取消授权」留在中间页,而不是关闭页面? HOT 5
- 此rep是初衷是为了解决微信公众号回调域名仅切只有一个的问题?存疑 :) HOT 3
- 单页应用spa, 路由使用hash模式, 会导致重定向的url异常 HOT 5
- 是不是不支持用了cdn和强制性跳转到https的网站? HOT 1
- 使用微信开发WEB工具会一直显示未绑定开发者 HOT 1
- 通过一个域名301到您的这个授权url,微信不跳转
- 为什么需要第二步?
- 中间页授权前提示 请在微信客户端打开链接
- 你好,使用本方法后一直跳转授权登录页面是什么问题?
- 域名转发成功,但是后台获取openid,展示code已被使用过
- 授权问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from getweixincode.