diff --git a/src/main/java/com/smartharvester/config/SmartHarvesterSecurityConfiguration.java b/src/main/java/com/smartharvester/config/SmartHarvesterSecurityConfiguration.java
index e31f86a0ce02633e7c537908cfdda46b7dbe5b75..cf1a8a2f5a22a30f38998f50d3451ae3f08c1edb 100644
--- a/src/main/java/com/smartharvester/config/SmartHarvesterSecurityConfiguration.java
+++ b/src/main/java/com/smartharvester/config/SmartHarvesterSecurityConfiguration.java
@@ -4,6 +4,8 @@ import com.smartharvester.security.jwt.AuthEntryPointJwt;
 import com.smartharvester.security.jwt.AuthTokenFilter;
 import com.smartharvester.security.services.UserServiceImpl;
 
+import javax.servlet.http.HttpServletResponse;
+
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
@@ -56,7 +58,8 @@ public class SmartHarvesterSecurityConfiguration extends WebSecurityConfigurerAd
                 .authorizeRequests().antMatchers("/harvester/auth/**").permitAll().and()
                 .authorizeRequests().antMatchers("/resources/**", "/public/error/css/**").permitAll()
                 .antMatchers("/harvester/api/**").authenticated()
-                .antMatchers("/public/error/css/**").permitAll();
+                .antMatchers("/public/error/css/**").permitAll().and()
+                .logout().logoutSuccessHandler((req, resp, auth) -> resp.setStatus(HttpServletResponse.SC_OK));
 
         http.addFilterBefore(authenticationJwtTokenFilter(), UsernamePasswordAuthenticationFilter.class);
     }