yong.dev.log

  • 홈
  • Computer Science
  • 태그
  • 방명록

CORS 2

Spring Boot response로 header가 추가되지 않는 현상

문제:response.addHeader(JwtProperties.HEADER_AUTHORIZATION, JwtProperties.ACCESS_TOKEN_PREFIX + newAccessToken);스프링 서버에서 응답 헤더에 추가한 헤더가 Front 서버에서 출력했을 때, undefined로 출력됨 원인:configuration.setExposedHeaders(Collections.singletonList("Set-Cookie"));configuration.setExposedHeaders(Collections.singletonList("Authorization"));configuration.setExposedHeaders(Collections.singletonList("x-reissue-token"..

Project/Boilerplate 2025.03.06

Spring Security 6.x.x CORS 설정

SecurityConfig.java@Configuration@EnableWebSecurity@RequiredArgsConstructorpublic class SecurityConfig { @Bean public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { ... http .cors(corsCustomizer -> corsCustomizer.configurationSource(new CorsConfigurationSource() { @Override public CorsConfiguration getCorsConfigu..

Web/Spring Security 2025.02.27
이전
1
다음
더보기
프로필사진

yong.dev.log

용우의 개발 일기장

  • 분류 전체보기 (63)
    • Computer Science (19)
      • 알고리즘 (9)
      • 일반 (1)
      • Java (0)
      • 운영체제 (2)
      • 네트워크 (3)
      • AI (2)
      • 디자인 패턴 (2)
    • Programming (1)
      • Git (1)
      • GitHub (0)
    • Web (17)
      • Web Application (1)
      • Spring, SpringBoot (8)
      • Spring Security (8)
    • Security (1)
      • Web (1)
    • Game (1)
      • Unity (1)
    • Project (22)
      • Boilerplate (21)
      • MBTI Translator (0)
      • Duri (1)
    • 기타 (0)
      • 우테코 7기 (0)

Tag

pagination, 알고리즘, spring security, Refresh, QueryDSL, Spring Boot, Algorithm, Breadth-First Search, CORS, 다중 토큰, Mockito, ACCESS, BFS, jwt, 백준, 소셜 로그인, 너비 우선 탐색, 우테코, git, OAuth2.0,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바