I need download file from server with token and show in iframe.
I used request with responseType: 'text'.So i can edit text and use a later.
I added in head block. It's need for resources (.js .css .html .img)...
I did:
const blob = new Blob([textHtml], { type: 'text/html' });
const url = URL.createObjectURL(blob);
...
I have 4 versions of SCORM file. Once version don't working. I don't know why.
I think: because duplicate resources (script, link) in head with the wrong link.
<head>
...
<link type="text/css" href="blob://http:/localhost:3000/html5/lib/stylesheets/desktop.min.css" rel="stylesheet" data-noprefix="true">
<script src="blob://http:/localhost:3000/html5/lib/scripts/frame.desktop.min.js"></script>
</head>
errors:
Not allowed to load local resource: blob://http:/localhost:3000/html5/lib/stylesheets/desktop.min.css
Not allowed to load local resource: blob://http:/localhost:3000/html5/lib/scripts/frame.desktop.min.js
in response file (text):
<html>
...
<body>
...
<link rel="stylesheet" href="html5/data/css/output.min.css" data-noprefix />
</body>
<script src="html5/lib/scripts/bootstrapper.min.js"></script>
</html>
I'm waiting: script loaded with baseUrl /html5/lib/scripts/bootstrapper.min.js