From c9f8b8815280dd375faa5ac1a071fa71eda04c82 Mon Sep 17 00:00:00 2001 From: Ramveer Singh Date: Mon, 19 Oct 2020 20:36:14 +0530 Subject: [PATCH] Removed authorization --- src/main/java/com/dummy/bookmyshow/security/SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dummy/bookmyshow/security/SecurityConfig.java b/src/main/java/com/dummy/bookmyshow/security/SecurityConfig.java index 377d204..1b6de26 100644 --- a/src/main/java/com/dummy/bookmyshow/security/SecurityConfig.java +++ b/src/main/java/com/dummy/bookmyshow/security/SecurityConfig.java @@ -55,7 +55,7 @@ protected void configure(HttpSecurity http) throws Exception { //TODO : uncomment below line if you want to authenticate // .antMatchers("/v1/**").hasIpAddress(ip) - .anyRequest().authenticated().and().exceptionHandling() + //.anyRequest().authenticated().and().exceptionHandling() .and().sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS); http.addFilterBefore(jwtFilter, UsernamePasswordAuthenticationFilter.class); }