My request URL: https://api.themoviedb.org/3/search/movie/?query=%EC%A1%B0%EC%BB%A4&api_key=######&language=ko-KR&page=1
but response status 301, and redirect "http" URL: http://api.themoviedb.org/3/search/movie/?query=%EC%A1%B0%EC%BB%A4&api_key=######&language=ko-KR&page=1
then, results are throw error Mixed Content.
Why my request and response has been status 301?
This is my url: https://byseop.github.io/modern-movie-web/ and there is search input page of center.
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ نوفمبر 18, 2019 في 10:46 مساءا
Hi @byseop,
The reason is your trailing slash. Compare the following URLs:
Here's the 2 requests side by side:
Vs. the second one, with no trailing slash:
رد بواسطة byseop
بتاريخ نوفمبر 19, 2019 في 12:11 صباحا
Thanks. Really helpful. Everything has been completely modified.