2014-12-18 2 views

답변

0

, 브라우저의 팝업 로그온 메시지 경우 WWW- 서버에서 인증을 보냈습니다. 팝업이 나타나지 않는이 헤더를 서버에서 제거하십시오.

+0

예, 시도했지만 여전히 존재합니다. 그리고 'http : // username : [email protected]/'stoped 작업 로그인 – Viktoriia

1

이렇게 봄을 구성하십시오.

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() 
       ; 



    } 
관련 문제