fetch problem
758
投稿した質問数 8
if I use fetch, I have a problem like below.. what am I going to do???
Failed to load https://yts.ag/api/v2/list_movies.json?sort_by=rating: Redirect from 'https://yts.ag/api/v2/list_movies.json?sort_by=rating' to 'https://yts.am/api/v2/list_movies.json?sort_by=rating' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
App.js:33 TypeError: Failed to fetch
回答 5
1
that movie database server url has changed. so you should change your url like 'https://yts.am/api/v2/list_movies.json?sort_by=rating'
In other words 'https://yts.ag/api/v2/list_movies.json?sort_by=rating' is not supported any more. please use 'https://yts.am/api/v2/list_movies.json?sort_by=rating'
0
안녕하세요. 노마드코더입니다. 저희가 인프런에서 질문/답변은 지원을 하지 않고 있습니다. youtube 링크에 직접 댓글로 달아주시거나. 저희 노마드아카데미 (https://academy.nomadcoders.co) 에서 질문해주시기 바랍니다. 고맙습니다.
cursor 안에서 다운로드 안되는 게 많은데 대체가 필요할까요
0
17
1
업데이트로 인한 에이전트 생성 변경
0
19
1
starter kit 프로젝트에 prd 문서 만들기
0
21
2
명령어 여러줄 입력방법?
0
23
2
ctrl + 't' 단축어가 안먹어요
0
22
1
클로드코드 계획 보고 방법 알고싶어요.
0
30
2
실무 버전 출시는 언제?
0
27
1
예시 1, 2, 3에서 질문있습니다.
0
39
2
Cursor 프로젝트 목록 및 작업 환경 동기화 문의
0
35
1
???
0
269
0
에러가 뜹니다
0
272
1
why propTypes use duplicate?
0
239
1
await, async for the functional component
0
284
1
function in functional components
0
210
1
useEffect in the functional components
0
218
1
State in a functional components
0
229
1
component가 없어요
0
214
1
access denied
0
222
1
yarn build 에러 떠서
0
483
1
yarn start error
0
397
1
아무나 답변 좀 부탁드려요
0
253
2
후기
0
175
1
root안에 모든걸 넣는다고 하시는데
0
158
1
about this.setState
0
142
1

