대머리개발자

Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response 본문

개발이야기/예외

Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response

대머리개발자 2023. 3. 3. 22:41
728x90

늘 예외에 출력되는 이야기는 귀 기울여야 한다.

 

그렇지 않으면 삽질의 늪에서 헤어 나올 수 없다. ㅎㅎ

 

"content-type" 을 허용하지 않아서 정찰병이 실패 했다. ㅠㅠ

 

해당 문제의 원인은 

 

allow를 하긴 했지만 *(asterisk) 설정이 먹통이다.

해서 일단 content-type만 넣어서 테스트 해 봤더니 정상 OK!!

 

 

나오는 오류 로그를 유심히 잘 보자.. ㅎ 삽질의 시간을 단축해준다. ㅠ

728x90