同源策略阻止评论数统计的请求 #1110
Answered
by
lizheming
Legend-cpu
asked this question in
Q&A
同源策略阻止评论数统计的请求
#1110
-
如题,开启评论数统计时向vercel部署的waline api发送请求时被同源策略阻止了,导致评论数一直加载不出来,因为服务器返回的响应里缺少Access-Control-Allow-Origin字段。我现在加了一点js代码用dom获取了评论数,但就是说,这个问题有什么更好的办法解决么 |
Beta Was this translation helpful? Give feedback.
Answered by
lizheming
Jun 8, 2022
Replies: 1 comment 1 reply
-
提供下复现地址看一下,另外 serverURL 最后如果有 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
lizheming
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
提供下复现地址看一下,另外 serverURL 最后如果有
/
去一下,否则会有问题