Importante

Você está vendo a versão anterior da nova experiência da Alura que estamos preparando para você. Em breve, ela ganha uma identidade visual novinha totalmente pensada em potencializar seus estudos!

1
resposta

[Bug] ERRO DE CORS

Na tentativa de externalizar a api, o console me retornou o seguinte erro:

"Access to fetch at 'https://my-json-server.typicode.com/luckfer7/aluraflix-api' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."

to tentando fazer o challenge do aluraflix.

código do projeto: https://github.com/luckfer7/aluraflix

1 resposta