Skip to content

用ip 访问报错 #27

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

Closed
Greasen opened this issue Mar 30, 2022 · 4 comments
Closed

用ip 访问报错 #27

Greasen opened this issue Mar 30, 2022 · 4 comments

Comments

@Greasen
Copy link

Greasen commented Mar 30, 2022

用ip 访问报错,提示 Cannot set properties of undefined (setting 'name') ;
控制台提示 Cannot read properties of undefined (reading 'digest') ;
Cannot set properties of undefined (setting 'name') ;

但是本地用 localhost 访问正常

@Greasen
Copy link
Author

Greasen commented Mar 31, 2022

#25 问题描述一致。

@Greasen Greasen closed this as completed Mar 31, 2022
@linpeng118
Copy link

是浏览器中crypto 这个用法导致的,我重写了里面的hashId方法,使用其他加密方式来代替crypto ,就可以解决了。

@Greasen
Copy link
Author

Greasen commented Apr 11, 2022

是浏览器中crypto 这个用法导致的,我重写了里面的hashId方法,使用其他加密方式来代替crypto ,就可以解决了。

对,我知道是这个方法导致的问题,我部署到 https 上了,解决问题了;但是还是希望官方能解决这个问题,不能局限部署条件或者重写 hashId 方法;

@linpeng118
Copy link

是浏览器中crypto 这个用法导致的,我重写了里面的hashId方法,使用其他加密方式来代替crypto ,就可以解决了。

对,我知道是这个方法导致的问题,我部署到 https 上了,解决问题了;但是还是希望官方能解决这个问题,不能局限部署条件或者重写 hashId 方法;

哈喽,尤大已经修改了,我今天才注意看,没有用crypto了,改为从hash-sum依赖生成hash值

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

2 participants