Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用ublock origin的时候回复功能无法使用 #20

Open
chocotan opened this issue Apr 16, 2022 · 0 comments
Open

使用ublock origin的时候回复功能无法使用 #20

chocotan opened this issue Apr 16, 2022 · 0 comments

Comments

@chocotan
Copy link

ublock会把这个脚本禁了

<script src="http://pv.sohu.com/cityjson?ie=utf-8"></script>

然后在/resources/templates/p/detail.html里returnCitySN是undefined:

    token = '';
    userIp=returnCitySN["cip"];

回复就无法工作了。


另外这里是取用户的ip吗? 用户ip由后端取 x-real-ip 或者x-forwarded-for 这两个请求头会好些吧

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant