0
I want to use temporary pages with the blob
but it is not loading the external files, it is possible to do this with the blob
? If not, there would be another way to make temporary pages without creating them on the server, just on the client side?
https://codepen.io/markvaaz/pen/ZEEbvMz
function urlBlob(text){
var blob = new Blob([text], {type: "HTML"});
var url = window.URL.createObjectURL(blob);
var a = document.createElement("a");
a.href = url;
a.innerHTML = "Clica"
document.body.appendChild(a)
}
urlBlob(document.body.innerHTML)
<link rel="stylesheet" href="https://app.sollic.com/style-1.0.9.css">
<div class="prealfa">Alguma coisa aqui</div>
<script src="https://app.sollic.com/script.js"></script>
wordpress stores page information in the database and only renders it to the client. I believe you can do it with simple text. But then, you should be aware of malicious attacks.
– Taffarel Xavier
The server and database issue is out of the question, the solution I’m looking for is just on the client side.
– Mark Vaaz
How information will be created so that it is then displayed to the customer?
– Taffarel Xavier
As you can see in the codepen example, the code will take HTML elements, hidden or not, and create a url blob to access these elements temporarily, but 100% of the scripts are loaded via external source, in the blob apparently does not load from external source... (It has nothing to do with security, if the user has knowledge he can access these hidden elements as he wants).
– Mark Vaaz