Harry-Chen / Learn-Helper

清华大学网络学堂助手
https://chrome.google.com/webstore/detail/learn-helper/mdehapphdlihjjgkhmoiknmnhcjpjall
MIT License
208 stars 37 forks source link

版本4.6.0 提交作业时点击【提交】按钮无反应 #135

Closed yuxuan-z19 closed 1 year ago

AsakuraMizu commented 1 year ago

指的是在内嵌的网络学堂页面“提交”吗?听着感觉像是网络学堂的问题

能否提供更多信息,例如控制台中输出的错误等
(我现在没有可提交的作业,无法复现)

hotwords123 commented 1 year ago

injectCsrfToken.js:1

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'wasm-unsafe-eval' 'inline-speculation-rules'". Either the 'unsafe-inline' keyword, a hash ('sha256-Axi5rjM+iyOz7Kz49zSjjiq1yueNyYD1MtTOU7GefsY='), or a nonce ('nonce-...') is required to enable inline execution.

POST https://learn.tsinghua.edu.cn/b/wlxt/kczy/zy/student/tjzy?_csrf=

Failed to load resource: the server responded with a status of 403 ()

应该是 CSRF 注入失败了

AsakuraMizu commented 1 year ago

问一下,两位是不是都用的chrome

hotwords123 commented 1 year ago

问一下,两位是不是都用的chrome

是的,Chrome 116.0.5845.188

yuxuan-z19 commented 1 year ago

问一下,两位是不是都用的chrome

我用的是 Edge 116.0.1938.81 以及 Kiwi Browser 112.0.5615.137

AsakuraMizu commented 1 year ago

已在 473af7 中修复,请等待更新

rouVling commented 1 year ago

在4.6.0版本中,打开课程主页后其他按钮也无法生效。估计和这个问题是同样根源,麻烦在修复的过程中顺带检查一下~