Is there any way to set CORS policy to null when loading images in sololearn? can javascript do it? | Sololearn: Learn to code for FREE!

0

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

Server sided programming

5/16/2017 7:46:25 PM

Miłosz Szatkowski

2 Answers

New Answer

+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); };

+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...