Mixed content error when accessing discover TV api call (v3) with redux toolkit

Hi I have this error where I’m trying to get a discover TV API call (v3) and it says I’m trying to request http although my baseQuery is https

github issue

Does anyone else have this issue?

When I use axios it’s ok, but redux toolkit gives this Mixed content error

update: it’s redirecting the https to a http api for some reason

Status Code: 301

Response Headers:
Location: api.themoviedb.org/3/discover/tv?api_key=####&include_adult=false&language=en-US&page=1&with_origin_country=US

edit: my issue was due to a slash in the API call

    `discover/tv/?api_key=${tmdbKey}&include_adult=false&with_origin_country=US&language=en-US&page=${String(
      page
    )}`,


    `discover/tv?api_key=${tmdbKey}&include_adult=false&with_origin_country=US&language=en-US&page=${String(
      page
    )}`,

Read more here: Source link