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

登录页面访问magic/web/config.json,返回的敏感信息不安全 #80

Open
qq572099423 opened this issue May 12, 2023 · 1 comment

Comments

@qq572099423
Copy link

登录页面访问magic/web/config.json包含敏感信息

image

@nownew
Copy link

nownew commented Nov 26, 2023

在MagicAPIProperties添加注解@JsonIgnore可解决:

package org.ssssssss.magicapi.core.config;

import com.fasterxml.jackson.annotation.JsonIgnore;
public class MagicAPIProperties {

    // 20231103 解决在访问http://ip:port/magic/web/config.json时泄露secretKey的问题
@JsonIgnore
public String getSecretKey() {
	return secretKey;
}

}

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