inflearn logo
강의

講義

知識共有

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

Async Await

fetch problem

726

jkkim74jk30646

投稿した質問数 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

rlgus11330926

이제는'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

ljt08150487

윤이응씨 고마워요~!

1

s2mos20641

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

lynnata0533

안녕하세요. 노마드코더입니다. 저희가 인프런에서 질문/답변은 지원을 하지 않고 있습니다. youtube 링크에 직접 댓글로 달아주시거나. 저희 노마드아카데미 (https://academy.nomadcoders.co) 에서 질문해주시기 바랍니다. 고맙습니다.

스웨거 접속이 안되는데 확인 부탁드립니다.

0

12

2

메모리 , rule

0

12

1

클로드 코드로 제작된 앱 검증

0

11

1

자꾸 수정하면 git관련한게 나오네요

0

21

3

초기 세팅에 대해서 정리한 문서가 있을까요?

0

17

1

첫 강의 이후 1년이 지났는데 괜찮을까요.

0

32

1

클로드 코드 실행 방법 문의

0

26

1

설명이 잘못된거같습니다.

1

28

2

안녕하세요 ai툴 질문있습니다.

0

41

2

???

0

264

0

에러가 뜹니다

0

250

1

why propTypes use duplicate?

0

221

1

await, async for the functional component

0

271

1

function in functional components

0

191

1

useEffect in the functional components

0

199

1

State in a functional components

0

212

1

component가 없어요

0

199

1

access denied

0

209

1

yarn build 에러 떠서

0

476

1

yarn start error

0

387

1

아무나 답변 좀 부탁드려요

0

241

2

후기

0

160

1

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

0

147

1

about this.setState

0

128

1