problem description
what"s wrong with the appid secretKey that calls Wechat"s token exposed in js?
the environmental background of the problems and what methods you have tried
Compression without encryption will cause online js code to run with an error
related codes
getOpenId: function getOpenId(code) {
return _jquery2["default"].get("https://api.weixin.qq.com/sns/oauth2/access_token", {
appid: "xxxxxx", //
secret: "yyyyy", //and
code: code,
grant_type: "authorization_code"
});
},
what result do you expect? What is the error message actually seen?
expect not to get appid secret directly from js, or others will go to http://work.weixin.qq.com/api.
call