저는 Next.js 13 버전으로 개발중입니다.


스프링으로 개발하신 분이


localhost:9001/api/user/signup 으로 api 만들었고 요청 데이터가

{

id : 'string' ,

password : 'string',

gender : 'MALE',

birth : '2023-01-01'


} 이었습니다.


그래서


대충


<form action = 'http://localhost:9001/api/user/signup' method = 'post' >

<input type ='text' name = 'id'/>

<input type ='password' name = 'password'/>

<input type ='radio' name = 'gender' value = 'MALE'/>

<input type ='radio' name = 'gender' value = 'FEMALE'/>

<input type ='date' name = 'birth'/>

<input type ='submit' value = '가입'/>

</form>


이라고 작성했는데 localhost에 대한 액세스가 거부되었다고 뜹니다.


우선 localhost:9001/api 에 있는 다른 GET요청을 받는 URL에 GET요청을 하면 데이터가 잘오는데 POST가 안되네요...