LC的老哥们好, 我在使用lc的sdk(js)做h5的时候, 使用AV.User.become(token), 报了个跨域问题.
Request URL: https://api.xxd.s3cj0y.net/1.1/users/me
Request Method: GET
Status Code: 500 For input string: "true"
Remote Address: 106.75.61.221:443
Referrer Policy: no-referrer-when-downgrade
请求头:
Accept: /
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-CN,zh;q=0.9
Connection: keep-alive
Content-Type: application/json;charset=UTF-8
Host: api.xxd.s3cj0y.net
Origin: https://xxd.s3cj0y.net
Referer: https://xxd.s3cj0y.net/h5/wxauth?timestamp=1568543585645&code=071GCord0OgooA1d1Eqd0iSmrd0GCorZ&state=123
sec-ch-ua: nwjs 74
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
Sec-Fetch-User: ?F
User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 10_2 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14C92 Safari/601.1 wechatdevtools/1.02.1907301 MicroMessenger/7.0.4 Language/zh_CN webview/15685410007082507 webdebugger port/57649
X-LC-Id: O4DOss4GoDU17kNJtn3uUm7W-gzGzoHsz
X-LC-Prod: true
X-LC-Session: nw6j0ynsymf0e2jigzzjkvgd6
X-LC-Sign: 88e9cc0a681c5178feb64774b1252a37,1568543589436
X-LC-UA: LeanCloud-JS-SDK/3.15.0 (Browser)
响应头:
Cache-Control: must-revalidate,no-cache,no-store
Connection: keep-alive
Content-Length: 305
Content-Type: text/html; charset=ISO-8859-1
Date: Sun, 15 Sep 2019 10:33:09 GMT
Server: openresty
ps: 使用AV.Cloud.run()调用云函数的时候倒是没有出现跨域问题