HeaderWriterFilter
์ธ์ธํ๊ฒ ๋ค ์ฐพ์๋ณด๊ธฐ์ ์๊ฐ์ด ๋๋ฌด ์ค๋๊ฑธ๋ฆด ๊ฒ ๊ฐ์๋ฐ ๊ทธ๋๋ ์ํ๋ฆฌํฐ๊ฐ ์ด์ ๋๊น์ง ๊ธฐ๋ฅํด์ค๋ค๋ ์ฐจ์์์ ์ธ์งํ ๋งํ ํํฐ์ธ ๊ฒ ๊ฐ์์ ๊ฐ์ ์๋ฃ๋ฅผ ๊ทธ๋๋ก ์ฎ๊ธด๋ค.
HeaderWriterFilter ์๋ต ํค๋์ ์ํ๋ฆฌํฐ ๊ด๋ จ ํค๋๋ฅผ ์ถ๊ฐํด์ฃผ๋ ํํฐ
XContentTypeOptionsHeaderWriter: ๋ง์ ํ์ ์ค๋ํ ๋ฐฉ์ด.
XXssProtectionHeaderWriter: ๋ธ๋ผ์ฐ์ ์ ๋ด์ฅ๋ XSS ํํฐ ์ ์ฉ.
CacheControlHeadersWriter: ์บ์ ํ์คํ ๋ฆฌ ์ทจ์ฝ์ ๋ฐฉ์ด.
HstsHeaderWriter: HTTPS๋ก๋ง ์ํตํ๋๋ก ๊ฐ์ .
XFrameOptionsHeaderWriter: clickjacking ๋ฐฉ์ด.
๋ด๊ฐ ์์ฒญํ๊ณ ๋ฐ์ ๊ฒ(์๋์ ์ผ๋ก ์๋ชป๋ ํ ํฐ ๋ณด๋๋ ๊ฒ)
HTTP/1.1 401
X-Content-Type-Options: nosniff
X-XSS-Protection: 0
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Content-Type: application/json;charset=UTF-8
Content-Length: 13
Date: Thu, 15 Jun 2023 11:54:14 GMT
Keep-Alive: timeout=60
Connection: keep-alive
๊ฐ์์๋ฃ ๋ด ์ํ
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Content-Language: en-US
Content-Type: text/html;charset=UTF-8
Date: Sun, 04 Aug 2019 16:25:10 GMT
Expires: 0
Pragma: no-cache
Transfer-Encoding: chunked
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Last updated