0

Is there any way to set CORS policy to null when loading images in sololearn? can javascript do it?

Server sided programming

16th May 2017, 7:46 PM
Miłosz Szatkowski
Miłosz Szatkowski - avatar
2 Réponses
+ 20
No.... To bypass protection upload a php script to a server containing the following line : echo file_get_contents($_GET["dat"]); and then do AJAX with JS: var aj = new XMLHttpRequest(); aj.open("GET","link-to-server-file?dat=link-of-victim-site"); aj.send(); aj.onload = function() { alert(this.responseText); };
16th May 2017, 7:50 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
looks like many people struggle with this, thank You,Valentine Hacker . I was thinking more of python or node solution but it looks like a lot of easier things can be done with just php. Am still learning...
17th May 2017, 3:25 PM
Miłosz Szatkowski
Miłosz Szatkowski - avatar