diff --git a/server/pom.xml b/server/pom.xml index 8fa610d..9aed4ab 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -24,16 +24,6 @@ spring-boot-starter-websocket - - - org.springframework.security - spring-security-config - - - org.springframework.security - spring-security-web - - org.springframework.boot diff --git a/server/src/main/java/com/charego/lingo/server/WebSecurityConfig.java b/server/src/main/java/com/charego/lingo/server/WebSecurityConfig.java deleted file mode 100644 index ae7caab..0000000 --- a/server/src/main/java/com/charego/lingo/server/WebSecurityConfig.java +++ /dev/null @@ -1,17 +0,0 @@ -package com.charego.lingo.server; - -import org.springframework.context.annotation.Configuration; -import org.springframework.security.config.annotation.web.builders.HttpSecurity; -import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; -import org.springframework.security.web.util.matcher.RequestMatcher; - -@Configuration -public class WebSecurityConfig extends WebSecurityConfigurerAdapter { - - private RequestMatcher proxyRequest = r -> r.getHeader("X-Forwarded-Proto") != null; - - @Override - protected void configure(HttpSecurity http) throws Exception { - http.requiresChannel().requestMatchers(proxyRequest).requiresSecure(); - } -}