I have a discord message that have an attachment. This attachment is a blob file, that have html code inside. I need to get a raw response text, because it have html code inside. When I try to fetch it, it says "Access-Control-Allow-Origin Missing Header" with CORS, but in Postman I have what I need. How to get a html text from url that download blob file?
fetch("https://cdn.discordapp.com/attachments/924478995830013995/1026201687628718112/blob")
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Link is real, so you can download this blob file and add a .html
file extension, also you can test that Postman get a html code well.