The options described below are very useful for development, but equally dangerous. Enabling these options is a huge security risk and should not be used for normal browsing.
If you need these options enabled but still want to browse, please consider using Chromium as a development browser with these options.
I’ve been writing code for in HP’s new Enyo framework for webOS, and a constant issue has been that WebServices can only be run in the emulator. Â Webservices are Enyo’s abstraction of XMLHttpRequest, basically. Â One of Enyo’s biggest strengths is that it can be tested in any Webkit based browser, but when you get to the internet access portion of testing (usually the biggest part!) you have to move to the emulator.
Fortunately, there is a fix! Â As noted above, do not leave this on by default as it is a huge security risk. Â This disables the file access and same origin protections, allowing you to perform webservices calls in Chrome.
To do this, run Chrome with the following command line options:
--allow-file-access-from-files --disable-web-security
In windows, you can add these to a shortcut (after the quotes, if present) just be sure to make the double hyphens a single hyphen. Â On OSX you can copy and paste the command line options above. Â For OSX you’d want to use a script unless you want to run it from the command line each time. Â If you’ll be spending a lot of time within Enyo, you may want to download Chromium and use that for development work. Â Again, browsing with these options enabled is a significant security risk.
Thanks for reading!