thu-info-lib的网页插件还可以使用吗?似乎限于CORS无法成功请求 #667
Answered
by
UNIDY2002
SunnyCloudYang
asked this question in
Q&A
-
插件使用 |
Beta Was this translation helpful? Give feedback.
Answered by
UNIDY2002
Dec 23, 2024
Replies: 1 comment 1 reply
-
一直没测插件,疏于维护了,需要在插件的 manifest.json 里面把 oauth.tsinghua.edu.cn 和 id.tsinghua.edu.cn 加进去。 另外,虽然从代码层面,lib 可以在 React 项目中引用,但跨域请求问题不可避免。可以考虑浏览器插件或微信小程序的形式。 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
SunnyCloudYang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
一直没测插件,疏于维护了,需要在插件的 manifest.json 里面把 oauth.tsinghua.edu.cn 和 id.tsinghua.edu.cn 加进去。
另外,虽然从代码层面,lib 可以在 React 项目中引用,但跨域请求问题不可避免。可以考虑浏览器插件或微信小程序的形式。