I tried this in console (Google chrome-> press f12
-> click console)
xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", "http://ift.tt/17Af3Z8", false );
xmlHttp.send( null );
xmlHttp.responseText;
If i run this same script in stackoverflow or any other site its returning the value in console
But when i try this in facebook its saying
DOMException: Failed to execute 'open' on 'XMLHttpRequest': Refused to connect to
'http://ift.tt/17Af3Z8'
because it violates the document's Content Security Policy.
Is it not possible to perform a http get
in facebook using console?
Aucun commentaire:
Enregistrer un commentaire