강의

멘토링

로드맵

Inflearn Community Q&A

wonselee7927's profile image
wonselee7927

asked

Vue.js Complete Guide - Learning Practical Concepts Through Hands-on Practice and Refactoring

[Lab Guide] Comparing HOC Structure vs. Applied Mixin

CORS policy

Resolved

Written on

·

239

1

Access to XMLHttpRequest at 'https://api.hnpwa.com/v0/undefined/1.json' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Mixin을 적용하면 데이터가 제대로 조회되지 않고 위와 같은 에러메시지를 띄웁니다. 

무슨 문제일까요?

javascriptvuejs

Answer 1

1

captain님의 프로필 이미지
captain
Instructor

안녕하세요 Wonse님, 위 API 요청 URL을 보시면 중간에 undefined가 선언되어 있습니다. API 함수 URL을 설정하는 부분을 다시 한번 살펴보시면 좋을 것 같습니다 :)

wonselee7927's profile image
wonselee7927

asked

Ask a question