I'm not Cordova expert, isn't there a permission for accessing local files?
http://stackoverflow.com/questions/11318703/access-control-allow-origin-error-at-android-4-1 Alternatively, you could use Vulcanize to crush all of the imports and inline everything int your main page. On Wed, May 14, 2014 at 2:35 PM, Mostafa Rokooie <[email protected]>wrote: > Of course I can, but the problem is when I'm going to package the app > using phonegap. On the mobile phone I have not a python SimpleHTTPServer or > something like that. > > > > 2014-05-15 1:43 GMT+04:30 Rob Dodson <[email protected]>: > > If you're building a mobile website you should be able to run a local >> server to preview everything. On mac you can quickly do that by running: >> >> python -m SimpleHTTPServer >> >> from the root of your project in terminal. If you're on Windows you could >> setup Apache or use something like XAMPP >> > > > On Wed, May 14, 2014 at 2:09 PM, Mostafa Rokooie < > [email protected]> wrote: > >> Hi guys, >> >> I'm trying to test Polymer in my web/mobile app, because it's using html >> imports how can I be able to serve files on file:// and use Polymer? >> >> I think html imports is using XHR to load imported file, and it's >> impossible to do XHR with file:// because of CORS. >> >> Best, >> Mostafa >> >> Follow Polymer on Google+: plus.google.com/107187849809354688692 >> --- >> You received this message because you are subscribed to the Google Groups >> "Polymer" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/polymer-dev/CAH60%3DdpjK540pGiwPsQY2c0CA-oCfJPqd7d%3D0g2EOpMWFbF6XQ%40mail.gmail.com<https://groups.google.com/d/msgid/polymer-dev/CAH60%3DdpjK540pGiwPsQY2c0CA-oCfJPqd7d%3D0g2EOpMWFbF6XQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > Follow Polymer on Google+: plus.google.com/107187849809354688692 > --- > You received this message because you are subscribed to the Google Groups > "Polymer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/polymer-dev/CAH60%3Ddrah3J6cOTzho%3Djgzr9za2EXOhDdqGETYSP2Fer08yHkg%40mail.gmail.com<https://groups.google.com/d/msgid/polymer-dev/CAH60%3Ddrah3J6cOTzho%3Djgzr9za2EXOhDdqGETYSP2Fer08yHkg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > Follow Polymer on Google+: plus.google.com/107187849809354688692 --- You received this message because you are subscribed to the Google Groups "Polymer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/CACGqRCCSLv2a3njf%2BWwcpFsPvsm2kvfnSJ30-T3oA4jMQUMH7g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
