๋ฐ์ํ CSRF2 [Spring Framework] CSRF ์ ์ฉ ์ง๋ ๋ฒ์ spring boot์ csrf๋ฅผ ์ ์ฉํ๋ ํฌ์คํ ์ ์ฌ๋ ธ์๋๋ฐ ๊ทธ๋ฅ spring๊ณผ ์ ์ฉํ๋ ๋ฐฉ๋ฒ์ด ๋ฌ๋ผ ๋ ํฌ์คํ ์ ์ฌ๋ ค๋ณธ๋ค! [Spring Boot] spring security - CSRF ์ ์ฉ , +) ajax csrf ์ ์ฉ 1. gradle ํน์ maven์ 'spring-boot-starter-security' ์ถ๊ฐ implementation 'org.springframework.boot:spring-boot-starter-security' org.springframework.boot spring-boot-starter-security 2.5.5 Spring S.. ynzu-dev.tistory.com web.xml์ dispactcher servlet์ ๋ฑ๋กํ๋ค. appServlet.. 2021. 12. 14. [Spring Boot] spring security - CSRF ์ ์ฉ , +) ajax csrf ์ ์ฉ 1. gradle ํน์ maven์ 'spring-boot-starter-security' ์ถ๊ฐ implementation 'org.springframework.boot:spring-boot-starter-security' org.springframework.boot spring-boot-starter-security 2.5.5 Spring Security๋ ์คํ๋ง ๊ธฐ๋ฐ์ ์ดํ๋ฆฌ์ผ์ด์ ๋ณด์์ ๋ด๋นํ๋ ํ๋ ์์ํฌ๋ก Spring Security๋ฅผ ์ฌ์ฉํ๋ฉด ๋ณด์์ฒ๋ฆฌ๋ฅผ ๊ฐ๋จํ๋ฉด์ ๊ฐ๋ ฅํ๊ฒ ๊ตฌํ๊ฐ๋ฅํ๋ค! 2. XXXXApplication.java์ @EnableWebSecurity ์ ์ธ @EnableWebSecurity :Spring Security๋ฅผ ํ์ฑํ @EnableWebSecurity @SpringBoot.. 2021. 12. 7. ์ด์ 1 ๋ค์ 728x90 ๋ฐ์ํ