Skip to content

thu-info-lib的网页插件还可以使用吗?似乎限于CORS无法成功请求 #667

Answered by UNIDY2002
SunnyCloudYang asked this question in Q&A
Discussion options

You must be logged in to vote

一直没测插件,疏于维护了,需要在插件的 manifest.json 里面把 oauth.tsinghua.edu.cn 和 id.tsinghua.edu.cn 加进去。

另外,虽然从代码层面,lib 可以在 React 项目中引用,但跨域请求问题不可避免。可以考虑浏览器插件或微信小程序的形式。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SunnyCloudYang
Comment options

Answer selected by SunnyCloudYang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants