Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
🔥 Remove Header component
Browse files Browse the repository at this point in the history
  • Loading branch information
mahata committed Nov 28, 2024
1 parent c9136e4 commit 101c586
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ class SecurityConfig(
) {
@Bean
@Throws(Exception::class)
fun filterChain(
http: HttpSecurity,
// jwtAuthenticationFilter: JwtAuthenticationFilter,
): SecurityFilterChain {
fun filterChain(http: HttpSecurity): SecurityFilterChain {
http
.csrf { it.disable() }
.authorizeHttpRequests {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class JwtAuthenticationFilter(
response: HttpServletResponse,
filterChain: FilterChain,
) {
if (!request.requestURI.startsWith("/api/v1/articles") || request.method == "GET") {
filterChain.doFilter(request, response)
return
}

try {
val jwtToken = getJwtFromCookies(request)

Expand Down
2 changes: 0 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Route, Routes } from "react-router-dom";
import Post from "./Post";
import EyeCatch from "./component/EyeCatch/EyeCatch";
import Header from "./component/Header/Header";
import Toast from "./component/Toast/Toast";
import ArticlePage from "./page/ArticlePage/ArticlePage";
import TopPage from "./page/TopPage/TopPage";
Expand All @@ -18,7 +17,6 @@ export default function App() {

return (
<div>
<Header />
<EyeCatch />
<Routes>
<Route path="/" element={<TopPage />} />
Expand Down

0 comments on commit 101c586

Please sign in to comment.