Refused to get unsafe "Content-Length" header / read ID3 tags from external mp3 files

I am trying to write a script that loads ID3 tags from a .mp3 file.

After searching for several hours, I found one script that was small in size and did what I wanted, however I can’t get it working with cross-domain .mp3 files. I tried using the CSP headers to get around this, but no luck.

Is there a way around this, for example, upload a file to backgrond and show a progress bar, or can I get around this in another way?

Error loading external file:

Refused to get unsafe header "Content-Length"

It is connected to .getResponseHeader (); as long as I remember.

+4
source share

Source: https://habr.com/ru/post/1525531/


All Articles