Community

개발자 99% 커뮤니티에서 수다 떨어요!

← Go back
expo snack에서 fetch 함수 쓸때, cors 문제 어떻게 해결할까요...
#ask
2년 전
3,933
7

https://snack.expo.dev/@shimmingyu/bigdataapp

has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

이런 경고창이 뜹니다.

fetch에서 mode:'no-cors' 를 하고 에러메세지를 보면

Uncaught (in promise) SyntaxError: Unexpected end of input~~

라고 뜹니다.. 3일째 답을 못찾고있습니다ㅠㅠ 해결법 아는 고수분 있을까요

7 comments