Disable Same Origin in FireFox or mobile safari for DalekJS "--disable-web-security"

1,038 views
Skip to first unread message

Dan Course

unread,
Apr 4, 2014, 5:45:32 AM4/4/14
to dal...@googlegroups.com
Ola' fellow Daleks, 

I've been using DalekJS exclusively on a project now, and for all it quirks, it's still better and easier than selenium webdriver gubbins.

However, for testing the AJAX calls, in our Gruntfile.js, we use the following to disable the web security in Chrome and run our tests,

                advanced: {
                // specify a port for chrome
                    "browsers": [{
                        "chrome": {
                            "chromeOptions": {
                                "args": ["enable-experimental-web-platform-features", "--disable-web-security"]
                            }
                        }
                    }]
                }


Is there an equivalent for the Firefox or mobile iOS browser? I've looked everywhere and can't even get the most popular "solutions" to work outside of DalekJS (see below, neither work).

Safari:

killall Safari; open -a Safari --args --disable-web-security


FireFox:

about:config -> security.fileuri.strict_origin_policy -> false

Thanks in advance, 

Geronimo! 

DanC



asciidisco

unread,
Apr 8, 2014, 4:21:43 AM4/8/14
to dal...@googlegroups.com
Hey,

at the moment, only Chrome supports these custom attributes, but I would love to see some Pull Requests for other browsers as well.
It shouldn't be too hard, and you could check how the options find their way into the Chrome driver here: https://github.com/dalekjs/dalek-browser-chrome/blob/master/index.js#L338-L340

If you would like to add this to the Firefox driver, you would look here: https://github.com/dalekjs/dalek-browser-firefox/blob/master/index.js#L849-L856

So, interested in tackling this issue? ;)

Alons-y.

Sebastian
Reply all
Reply to author
Forward
0 new messages