Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open API CORS 이슈 #2

Closed
sscoderati opened this issue May 7, 2023 · 1 comment
Closed

Open API CORS 이슈 #2

sscoderati opened this issue May 7, 2023 · 1 comment

Comments

@sscoderati
Copy link
Owner

sscoderati commented May 7, 2023

fetch()를 사용해서 공공데이터에 get 요청을 보내면 response type="cors"라고 뜨면서 데이터를 못 가져오는 이슈

@sscoderati
Copy link
Owner Author

package.json에 "proxy": "http://localhost:1234" 설정 추가,
fetch() 대신 axios 라이브러리 설치 후 await axios.get()를 대신 사용하여 문제 해결

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant