תמיכת The Movie Database

I am getting a CORS error when attemtping to GET an image from the image API: localhost/:1 Access to XMLHttpRequest at 'https://image.tmdb.org/t/p/w500/' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.

This does not happen when making requests to https://api.themoviedb.org/3/discover/moviefor movie title, description etc.

This is my axios instance, I am using the same setup with a different url for the working API call, what gives?

export const imageAPI = axios.create({
  baseURL: "https://image.tmdb.org/t/p/w500",
  headers: {
    Accept: "application/json",
    Authorization: `Bearer ${readAccessToken}`,
  },
});

Thanks in advance!

.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם

עולמי

s התמקד בשורת החיפוש
p פתח תפריט פרופיל
esc סגור חלון פתוח
? פתח חלון קיצורי דרך של מקלדת

בדפי מדיה

b לך חזרה (או אל הורה אם ישים)
e לך אל דף עריכה

בדפי עונות

(חץ ימני) לך אל העונה הבאה
(חץ שמאלי) לך אל העונה הקודמת

בדפי סדרות

(חץ ימני) לך אל הפרק הבא
(חץ שמאלי) לך אל הפרק הקודם

בכל דפי תמונה

a פתח חלון הוספת תמונה

בכל דפי עריכה

t פתח בוחר תרגום
ctrl+ s הגש טופס

בדפי דיון

n צור דיון חדש
w עורר מעמד צפייה
p עורר ציבורי/פרטי
c עורר סגירה/פתיחה
a פתח פעילות
r השב אל דיון
l לך אל תשובה אחרונה
ctrl+ enter הגש את הודעתך
(חץ ימני) הדף הבא
(חץ שמאלי) הדף הקודם

הגדרות

?רוצה לדרג או להוסיף פריט אל רשימה

היכנס