inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

리액트 처음이시라구요? React JS로 웹 서비스 만들기!

Async Await

fetch problem

786

김재기

작성한 질문수 8

0

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

react javascript

답변 5

1

권기현

이제는'https://yts.mx/api/v2/list_movies.json?sort_by=rating' 로 바뀌었네요

1

devham76

https://yts.lt/api/v2/list_movies.json?sort_by=rating
로 또 변경되었습니다

1

지태

윤이응씨 고마워요~!

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) 에서 질문해주시기 바랍니다. 고맙습니다.

섹션 9 미션 건너뛰어도될까요?..

0

22

2

이폴더가 신뢰할수없다는데 왜이런건가요

0

23

1

git설치에서 이름과 이메일설정

0

31

2

다나와서 보려고 하는데.. 가격이 싸질수도 있군요..?

0

27

1

eslint 설정

0

37

2

19. SSR 실습 중 any 타입스크립트 에러

0

31

1

VS Code : Claude Extension 사용

0

42

2

프로젝트메모리, 사용자 메모리 차이???

0

44

2

커서 디스플레이

0

47

2

???

0

276

0

에러가 뜹니다

0

285

1

why propTypes use duplicate?

0

249

1

await, async for the functional component

0

294

1

function in functional components

0

221

1

useEffect in the functional components

0

232

1

State in a functional components

0

236

1

component가 없어요

0

222

1

access denied

0

230

1

yarn build 에러 떠서

0

491

1

yarn start error

0

407

1

아무나 답변 좀 부탁드려요

0

261

2

후기

0

185

1

root안에 모든걸 넣는다고 하시는데

0

164

1

about this.setState

0

148

1