I was trying to include JQuery on an existing website using console this way:
var script = document.createElement('script');
script.src = 'http://code.jquery.com/jquery-1.11.1.min.js';
Content Security Policy: The page's settings blocked the loading of a resource at http://code.jquery.com/jquery-1.11.1.min.js ..
You can turn off the CSP for your entire browser in Firefox by disabling
security.csp.enable in the
about:config menu. If you do this, you should use an entirely separate browser for testing. For example, install Firefox Developer Edition alongside your normal browser and use that for testing (and not normal Web use).
As an alternative, it should be possible to alter the
Content-Security-Policy response header before it gets to your browser (via an HTTP proxy). It is also possible to do this with extensions.
A Chrome extension can set its own CSP for its own
chrome-extension://... pages, but it cannot alter the CSP of a normal webpage.