Can I add authentication (Bearer Token) to a link tag in the head to preload a data?

Viewed 11

I am trying to preload data in an application that uses the TMDB API

The way I would like to preload it is using a Link types: preload

So something similar to this:

<link 
    rel="preload"
    as="fetch"
    type="application/json"
    href="https://api.themoviedb.org/3/genre/movie/list"
    crossorigin
/>

The issue is that the API seems to require a Bearer Token, or so I understand from the official TMDB documentation

Is it possible to add the authentication header to the link tag at the head of the document, or the outgoing request?

0 Answers
Related