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
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by dowhyme
on September 16, 2020 at 10:46 AM
It's not a solution for me
Reply by dowhyme
on September 16, 2020 at 11:40 AM
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
Reply by ShraddhaBShinde
on January 9, 2022 at 10:13 PM
Hey, did your error get solved?