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/CAJj5OwD5co9VHYdh%3DzCgr7q2r7Q7N%2Bk1yAc8vaqqD96Q48hz0Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
