mirror of
https://github.com/headporter81/specialsource-homepage-backend.git
synced 2026-12-06 07:41:09 +09:00
feat : IT 헤드라인 API 추가 (GET /api/headlines, GeekNews 피드 30분 메모리 캐시)
SpecialSource Backend CI/CD / build-and-deploy (push) Successful in 52s
SpecialSource Backend CI/CD / build-and-deploy (push) Successful in 52s
- 브라우저에서 직접 읽으면 CORS로 막혀서 백엔드가 대신 가져옴 - 피드 장애 시 직전 목록 유지, 요청마다 재시도하지 않음 - 메인 화면용이라 인증 없이 접근 허용 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
657d92114b
commit
569346ef31
2 files changed
+61
-2
No files matched your search
@@ -31,8 +31,8 @@ public class SecurityConfig {
|
||||
.cors(Customizer.withDefaults()) // 아래 corsConfigurationSource 빈 사용
|
||||
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
|
||||
.authorizeHttpRequests(auth -> auth
|
||||
// 로그인 API 및 파일 동기화 업로드 API는 인증 없이 누구나 접근 가능하도록 허용
|
||||
.requestMatchers("/api/login", "/api/sync/upload").permitAll()
|
||||
// 로그인 API, 파일 동기화 업로드 API, 메인 화면 IT 헤드라인은 인증 없이 누구나 접근 가능하도록 허용
|
||||
.requestMatchers("/api/login", "/api/sync/upload", "/api/headlines").permitAll()
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
.addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class);
|
||||
|
||||
Reference in new issue
Block a user