1
사람은 알고 있나요 방법 다음 방법으로 로그인 할 수있는 가능성을 제거하지 않고 기본 인증에서 '숨기기'팝업 메시지에 'http://username:[email protected]/를'사실은 기본 인증의 팝업을 제거하는 방법
사람은 알고 있나요 방법 다음 방법으로 로그인 할 수있는 가능성을 제거하지 않고 기본 인증에서 '숨기기'팝업 메시지에 'http://username:[email protected]/를'사실은 기본 인증의 팝업을 제거하는 방법
, 브라우저의 팝업 로그온 메시지 경우 WWW- 서버에서 인증을 보냈습니다. 팝업이 나타나지 않는이 헤더를 서버에서 제거하십시오.
이렇게 봄을 구성하십시오.
protected void configure(HttpSecurity http) throws Exception {
http
.csrf()
.and()
.addFilterAfter(csrfHeaderFilter(), CsrfFilter.class)
.exceptionHandling()
.and()
.rememberMe()
.and()
.formLogin()
.loginProcessingUrl("/user") // rest api
//.usernameParameter("username")
//.passwordParameter("password")
.permitAll()
.and()
.logout()
//.logoutUrl("/api/logout")
//.deleteCookies("JSESSIONID", "CSRF-TOKEN")
.permitAll()
.and()
.headers()
.frameOptions()
.disable()
.authorizeRequests()
.antMatchers("/login").permitAll()
.antMatchers("/#/dashboard/home").permitAll()
;
}
예, 시도했지만 여전히 존재합니다. 그리고 'http : // username : [email protected]/'stoped 작업 로그인 – Viktoriia