wogns1026 / Clone-Carrot

React & Spring Boot
2 stars 0 forks source link

HTTP Request 시 CORS 오류 발생 #15

Closed snowman95 closed 2 years ago

snowman95 commented 2 years ago

에러내용

CORS 헤더 'Access-Control-Allow-Origin' 누락으로 인해 리소스를 가져올 수 없음

원인

CORS 요청에 대한 응답에 필수 Access-Control-Allow-Origin헤더 가 누락됨 해당 헤더는 리소스에 액세스할 수 있는지 여부를 결정하는 데 사용됨

해결책

MDN Web Docs

콘솔

image

네트워크

image

image

wogns1026 commented 2 years ago