תמיכת The Movie Database

I am trying to implement the control flow to allow users to authenticate using the v4 API.

XMLHttpRequest cannot load https://api.themoviedb.org/4/auth/request_token. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:7878' is therefore not allowed access. The response had HTTP status code 500.

What am I doing wrong here?

I realize this likely has to do with CORS but what can I or should I do to resolve it?

Thanks!

5 תגובות (בדף 1 מתוך 1)

Jump to last post

Could you possibly let me know if I am doing something wrong or if it is something not fully implemented in the v4 api yet?

I would appreciate a little feedback - thanks! :)

I'll take a look at this tomorrow morning when I get into work. Thanks for your patience George.

Hi George sorry about not getting to this. I had a crazy day yesterday. I need to push an update on the API to handle the pre-flight request. I'll try to get to this on Monday.

no problem - thanks for keeping me posted! :)

I have made some changes to the API as well as created a small little test script for v4 auth that you can see and use here. I've tested and walked through the steps all the way to generating a valid user access token and everything looks like it's working.

Cheers.

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

עולמי

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

בדפי מדיה

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

בדפי עונות

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

בדפי סדרות

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

בכל דפי תמונה

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

בכל דפי עריכה

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

בדפי דיון

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

הגדרות

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

היכנס