devlog/Javascript 썸네일형 리스트형 jQuery ajax POST 405 오류에 관한 해결 방법 개발환경 thymeleaf 3.0.11 Spring Boot 2.2.5 IntelliJ Ultimate 2020.1 JDK 8 jQuery 2.1.4 Gradle Webpack 발생 spring security 사용 중 ajax post 방식으로 호출 시 405 에러 발생 오류 stack strace POST http://localhost:8080/user/checkDuplicate 405 원인 spring security 의 _csrf_header만 넘기고 _csrf 값을 넘기지 않음 해결 AS-IS beforeSend: function (xhr) { xhr.setRequestHeader($("meta[name='_csrf_header']").attr("content")); } TO-BE beforeS.. 더보기 ajax 호출시 발생하는 jquery.js: Uncaught TypeError: Cannot read property 'toLowerCase' of undefined 오류에 관한 해결 방법 개발환경 thymeleaf 3.0.11 Spring Boot 2.2.5 IntelliJ Ultimate 2020.1 JDK 8 jQuery 2.1.4 Gradle webpack 발생 회원가입 화면 개발중에 아이디 중복체크를 위해 ajax 사용 시 toLowerCase를 찾을 수 없다는 오류가 발생 form 태그는 사용하지 않음. jquery.js:9463 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined at Object.setRequestHeader (jquery.js:9463) at Object.beforeSend (util.js:11) at Function.ajax (jquery.js:9640) at Module.ajax (ut.. 더보기 이전 1 다음