fetch problem
689
8 asked
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
Answer 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) 에서 질문해주시기 바랍니다. 고맙습니다.
VS Code의 Command pallet에서 'install command'해도 'code' command가 안보입니다.
0
1
1
용어 발음법이 계속 바뀌는 것 같은데 이런 부분들 개선이 가능할까요...?
0
7
1
파일 디렉토리 구조가 다르네요
0
11
1
클로드 초기설정
0
12
1
슬슬 따라하기가 힘들어진다.
0
42
2
counter01.html은 어디있을까요?
1
10
1
[문의] 섹션 7 미션 진행 중...
0
23
2
기본 브랜치의 이름이 master에요.
0
32
2
관리자 페이지 질문
0
18
1
???
0
259
0
에러가 뜹니다
0
230
1
why propTypes use duplicate?
0
209
1
await, async for the functional component
0
259
1
function in functional components
0
181
1
useEffect in the functional components
0
191
1
State in a functional components
0
205
1
component가 없어요
0
190
1
access denied
0
200
1
yarn build 에러 떠서
0
456
1
yarn start error
0
371
1
아무나 답변 좀 부탁드려요
0
222
2
후기
0
146
1
root안에 모든걸 넣는다고 하시는데
0
138
1
about this.setState
0
123
1

