Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refused to execute a JavaScript script. Source code of script found within request

In WebKit I get the following error on my JavaScript:

Refused to execute a JavaScript script. The source code of script found within request.

The code is for a JavaScript spinner, see ASCII Art.

The code used to work OK and is still working correctly in Camino and Firefox. The error only seems to be thrown when the page is saved via a POST and then retrieved via a GET. It happens in both Chrome/Mac and Safari/Mac.

Anyone know what this means, and how to fix this?

like image 660
doekman Avatar asked Oct 10 '09 12:10

doekman


1 Answers

This "feature" can be disabled by sending the non-standard HTTP header X-XSS-Protection on the affected page.

X-XSS-Protection: 0 
like image 188
Kendall Hopkins Avatar answered Sep 22 '22 10:09

Kendall Hopkins