title: Disable Content Security Policy in PhantomJS
body: <p>I am trying to use a WebSocket in a <code>page.evaulate()</code> call in PhantomJS (2.1.1).  When trying to connect to the WebSocket server, I get the following error:</p>
  
  <p><code>SecurityError: DOM Exception 18: An attempt was made to break through the security policy of the user agent.</code></p>
  
  <p>I was able to disable the CSP in Firefox by going to <code>about:config</code> and setting <code>security.csp.enable</code> to false.  After doing this, I could run the same code from the PhantomJS script by pasting it into the console in Firefox with no problems.</p>
  
  <p>Is it possible to disable Content Security Policy in PhantomJS?  (I have tried setting <code>page.webSecurityEnabled = false</code> and <code>page.localToRemoteUrlAccessEnabled = true</code> to no avail.)</p>