fetch problem
737
작성한 질문수 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) 에서 질문해주시기 바랍니다. 고맙습니다.
스크립트 영상 미일치
0
20
3
감정일기장 다이어리 필터 적용할때 컨텍스트를 Home에서 가져오는 특별한 이유가 궁금합니다.
0
13
2
강사님 플랜보드 보면서 느끼는건데
0
19
1
tdd green agent 에서 문의 드립니다.
0
14
1
강의 설명 중에 헷갈리는 것이 있네요
0
13
1
수업자료 관련 문의
0
17
3
22강 [토큰 저장] 질문
0
30
1
클로드 사용 오류
0
34
3
음성불량
0
26
1
???
0
266
0
에러가 뜹니다
0
260
1
why propTypes use duplicate?
0
226
1
await, async for the functional component
0
275
1
function in functional components
0
202
1
useEffect in the functional components
0
206
1
State in a functional components
0
218
1
component가 없어요
0
204
1
access denied
0
213
1
yarn build 에러 떠서
0
476
1
yarn start error
0
390
1
아무나 답변 좀 부탁드려요
0
248
2
후기
0
168
1
root안에 모든걸 넣는다고 하시는데
0
153
1
about this.setState
0
139
1





