Hey guys i got stuck with API getting error in console
Access to XMLHttpRequest at 'https://api.themoviedb.org/3' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
code is
import axios from 'axios'
const instance = axios.create({
baseURL: "https://api.themoviedb.org/3",
})
export default instance
Im working in React.js
找不到电影或节目?登录并创建它吧。
dowhyme 的回复
于 2020 年 09 月 16 日 10:46上午
It's not a solution for me
dowhyme 的回复
于 2020 年 09 月 16 日 11:40上午
So its gone now. That error is gone and i did like nothing. but i got new one.
Failed to load resource: net::ERR_CONNECTION_REFUSED
Cant get pictures from database. I get only broken Icons and movies/series names
ShraddhaBShinde 的回复
于 2022 年 01 月 09 日 10:13下午
Hey, did your error get solved?