L
L
lssssssssssl2021-08-24 09:45:30
JavaScript
lssssssssssl, 2021-08-24 09:45:30

How to get audio from a route that is protected by a token?

61249374c6b67194162470.png
612493986da06537070819.png
If you send a request from html , then everything is displayed and played correctly in the browser, but if the route on the back is protected by a token, then everything, of course, does not work. If you make a request using axios, then the token does not interfere, but the response audio is inflated to 10-20-30mb and then it cannot be converted to a normal form.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2021-08-25
@lsssssssssl

if we are talking about passing blocks of links to audio in html, then headings cannot be passed into elements, in total, either for such links you need to make one-time download tickets and pass them as params in the link, or use cookies, sessions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question