The Movie Database-ondersteuning

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

3 antwoorden (op pagina 1 van 1)

Jump to last post

@WardenclyffeTower said:

Perhaps you could explain why it didn't work, what you tried, what results you got, etc.

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

@dowhyme said:

@WardenclyffeTower said:

Perhaps you could explain why it didn't work, what you tried, what results you got, etc.

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

Hey, did your error get solved?

Film of tv-serie niet gevonden? Meld je aan om deze toe te voegen.

Wereldwijd

s focus op zoekbalk
p open profielmenu
esc sluit een open venster
? open sneltoetsen venster

Op media pagina's

b ga terug (of ga naar bovenliggend item)
e ga naar beweken

Op tv-seizoenspagina's

(rechter pijl) ga naar volgende seizoen
(linker pijl) ga naar vorig seizoen

Op pagina's met tv-series

(rechter pijl) ga naar volgende aflevering
(linker pijl) ga naar vorige aflevering

Op alle afbeeldingspagina's

a open venster afbeelding toevoegen

Op alle bewerkte pagina's

t open vertaalmenu
ctrl+ s verstuur formulier

Op discussiepagina's

n start nieuwe discussie
w Verander kijk status
p privé of openbaar
c schakelen sluiten/openen
a open activiteit
r beantwoord discussie
l ga naar laatste antwoord
ctrl+ enter verstuur uw bericht
(rechter pijl) volgende pagina
(linker pijl) vorige pagina

Instellingen

Want to rate or add this item to a list?

Inloggen