I'm making a get request to the MovieDB API using an axios.create instance. The params object I am attaching which includes the API key is not being sent with the requests.
The requests work fine when using axios.get but not with axios.create.
import axios from "axios";
export default axios.create({
baseURL: "https://api.themoviedb.org/3",
params: {
api_key: MY_API_KEY
}
});
I am receiving error code 401 Unauthorized.