Commit d7a1665a d7a1665a3b72c22c4078a3a207a94bdabc86c30a by Nicolas Perriault

fixes #423 - Document webSecurityEnabled

1 parent 7a235726
......@@ -309,7 +309,7 @@ Emitted when a new window has been opened.
Emitted when a remote ``alert()`` call has been performed.
``remote.callback``
~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~
**Arguments:** ``data``
......
......@@ -257,6 +257,30 @@ When you have defined your navigation steps, ``run()`` executes them one by one
.. note:: The callback/listener stuff is an implementation of the `Promise pattern <http://blog.thepete.net/blog/2011/07/02/javascript-promises/>`_.
.. _faq_web_security:
.. index:: Web security, download, CORS
I'm having hard times downloading files using ``download()``
------------------------------------------------------------
You should try to disable `web security`. Using the ``--web-security`` command line option:
.. code-block:: text
$ casperjs --web-security=no myscript.js
Within code::
var casper = require('casper').create({
pageSettings: {
webSecurityEnabled: false
}
});
Or anytime::
casper.page.settings.webSecurityEnabled = false;
Is it possible to achieve parallel browsing using CasperJS?
-----------------------------------------------------------
......
......@@ -643,6 +643,10 @@ Saves a remote resource onto the filesystem. You can optionally set the HTTP met
this.echo('Done.').exit();
});
.. note::
If you have some troubles downloading files, try to :ref:`disable web security <faq_web_security>`.
``each()``
-------------------------------------------------------------------------------
......