IT LAB

  • 홈
  • 태그
  • 방명록

2023/10/14 12

[Spring Security] 5-3. 보안: HTTP Requests

1. Redirect to HTTPSSpring Security에서 HTTP 요청을 자동으로 HTTPS로 리다이렉트시키는 설정 설정더보기@Beanpublic SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http // ... .requiresChannel(channel -> channel .anyRequest().requiresSecure() ); return http.build();} 2. Strict Transport Security3. Proxy Server Configuration프록시나 로드 밸런서를 사용하는 환경에서 클라이언트의 실제 요청 정보를 애..

Spring/Spring Security 2023.10.14

[Spring Security] 5-2. 보안: Security HTTP Response Headers

1. Default Security HeadersSpring Security는 응답 헤더에 보안에 관련된 헤더를 자동으로 추가해 줌 기본 보안 응답 헤더헤더 이름값설명목적Cache-Control(브라우저 캐시 제어)no-cache, no-store, max-age=0, must-revalidate 브라우저 캐시 차단(해당 페이지 및 리소스 캐시 ❌)사용자 민감정보 노출 방지(뒤로가기 시 민감정보가 남아있음)Pragmano-cache HTTP/1.0 캐시 비활성화HTTP1.0 시대의 캐시 헤더(버전 호환성을 위해 추가됨)Expires0만료일이 과거로 설정되어 캐시 방지HTTP1.0 시대의 캐시 헤더(버전 호환성을 위해 추가됨)X-Content-Type-Optionsnosniff브라우저가 MIME 타입 추측..

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

  • 분류 전체보기 (612)
    • Java (92)
      • Design Pattern (20)
    • Spring (142)
      • Spring (35)
      • Spring MVC (11)
      • Spring Test (3)
      • Spring Stomp (4)
      • Spring Boot (15)
      • Spring Data JPA (34)
      • Spring for Apache Kafka (9)
      • Spring Security (31)
    • Data Structure (13)
    • Algorithm (26)
      • (Java) PS (66)
    • Computer Architecture (6)
    • OS (22)
      • Linux (6)
    • Network (15)
    • Database (85)
      • Mysql (46)
      • Redis (17)
      • MongoDB (9)
    • DevOps (31)
      • Docker (1)
      • Kubernetes (18)
      • Kafka (9)
      • CI&CD (1)
    • Code (52)
      • OOP (10)
      • Refactoring (10)
      • MSA (1)
      • Test (18)
    • Javascript (15)
      • Node.js (3)
      • React (8)
    • Python (9)
    • Math (3)
    • Git (12)
    • Tip (1)

Tag

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2023/10   »
일 월 화 수 목 금 토
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.

티스토리툴바