From 35bdefdf8c5bacec44325d869f76e60707b2dcc8 Mon Sep 17 00:00:00 2001 From: Anna Ojdowska Date: Sun, 2 Dec 2018 23:57:26 +0100 Subject: [PATCH] Proper url mapping --- .../main/java/pg/eti/kiohub/controller/MainController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiohub/src/main/java/pg/eti/kiohub/controller/MainController.java b/kiohub/src/main/java/pg/eti/kiohub/controller/MainController.java index 5c38ff5..c123b8d 100644 --- a/kiohub/src/main/java/pg/eti/kiohub/controller/MainController.java +++ b/kiohub/src/main/java/pg/eti/kiohub/controller/MainController.java @@ -112,8 +112,10 @@ protected void configure(HttpSecurity http) throws Exception { .httpBasic() .and() .authorizeRequests() + .antMatchers("/project/**").permitAll() .anyRequest().permitAll() - .and().csrf().csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()); + .and().csrf() + .csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse()); } }