As I'm getting started on the API, the "Try it out" feature would be helpful but it's reporting CORS errors for me.
Access to XMLHttpRequest at 'https://z4vrpkijmodhwsxzc.stoplight-proxy.io/3/configuration?api_key={{key-redacted}}' from origin 'https://developers.themoviedb.org' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
The API itself IS working but it's good to have an idea of what to expect
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 ticao2 š§š· pt-BR
on April 4, 2021 at 3:01 PM
There can be 3 different problems.
A - If you are in Russia, in the surrounding Moscow, there is a problem with access to the TMDb API servers.
Look at this thread:
https://www.themoviedb.org/talk/6036ee9d4fd141003eae8534
B - You may be using Try it out feature.
You are probably sending your API Request directly from the Developers page.
https://developers.themoviedb.org/3/getting-started/introduction
Developers.themoviedb.org is hosted by https://stoplight.io/
And yes, he's in trouble.
This is the error response I get on developers.themoviedb:
But if I use the URL directly in the browser I get the correct answer.
Copy the URL of the API Request and paste it into a new tab or window.
Travis Bell, the Manager, said (2021-01-15):
https://www.themoviedb.org/talk/600184fc6aa8e0004077e364?page=1#6001bbacbe4b36003d514ac3
C - CORS issue
In case you have not researched here in the Forum, below the link of 3 posts with similar problem.
Maybe it helps:
https://www.themoviedb.org/talk/5f621eae93388b003864513c
https://www.themoviedb.org/talk/5eb07271a13533001b72740a
https://www.themoviedb.org/talk/5f55e3dd713ed40037f090d4
https://www.themoviedb.org/talk/5f55e3dd713ed40037f090d4
Reply by jeffrose
on April 4, 2021 at 4:00 PM
Got it - I was on the developer page for configuration (https://developers.themoviedb.org/3/configuration/get-api-configuration) and clicking the Try It Out tab and expecting that to work.
Using the URL directly did work, and gave me the answers I need.z