Dandy Now!
  • [ 언어·프레임워크/React.js ]
    [React.js] Spring Boot와 연동 시 `Invalid URL` 오류 해결기(리액트 프로젝트 중단점 설정)
    2025-06-18 21:44:01
    Spring Boot와 React 연동 시 Invalid URL 오류 해결기Spring Boot 백엔드와 React 프런트엔드를 연동하는 과정에서 SyntaxError: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL이라는 오류를 마주했고, 이를 해결한 과정을 공유하고자 한다. 이 글이 비슷한 문제로 고민하는 분들에게 도움이 되기를 바란다.1. 문제의 시작: Cannot read properties of undefined와 서버 무응답React 애플리케이션에서 로그인 요청을 보냈을 때, 브라우저 콘솔에는 Cannot read properties of undefined (reading 'data')라는 오류가 나타났다. 동시에 백엔드 Spring Bo..