Thanks. Actually I'm on linux. Ubuntu to be precise. So for reference, on
Ubuntu the command to run would be "google-chrome
--allow-file-access-from-files".

On Saturday, July 12, 2014, <[email protected]> wrote:

> Actually, I had a different window of chrome open when I tried that so it
> did not work as the flag wasn't enabled. I tried it again after closing all
> chrome windows and it worked. My bad. Thanks for your help :)
>
> On Saturday, 12 July 2014 18:04:45 UTC+5:30, [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');> wrote:
>>
>> Thanks for your reply :)
>> I did as you said and ran chrome with the flag, but it did not have any
>> effect. The page still appears blank when I open the file locally but works
>> properly if I open it through the local server. Any idea why?
>>
>> On Saturday, 12 July 2014 15:00:30 UTC+5:30, [email protected] wrote:
>>>
>>> Its probably due to the fact the without a server the imports wouldn’t
>>> be allowed under the browser’s same origin policy.
>>> You can bypass that by opening Chrome with --allow-file-access-from-files
>>> flag:
>>>
>>> Just set up a shortcut with the following target: C:\Users\Admin\
>>> AppData\Local\Google\Chrome\Application\chrome
>>> --allow-file-access-from-files and it should work
>>>
>>> On Saturday, July 12, 2014 12:00:00 PM UTC+3, [email protected]
>>> wrote:
>>>>
>>>> HI, I'm following this
>>>> <http://www.polymer-project.org/docs/start/tutorial/intro.html> tutorial
>>>> on polymer-project.org. In it it says that I need a web server to test
>>>> my pages.
>>>> I'm sorry if this is a very stupid question, but why do I need a web
>>>> server? Why don't the pages work if you simply open the index.html files
>>>> locally in the browser? I just want to understand. By my reasoning it
>>>> should work the same way whether it is loaded from a remote server or the
>>>> local filesystem.
>>>>
>>>

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/CAHuyirkFP3KMKD-Df2gF1MpUoTzSZqZLUUS0-q-HP336iWMbmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to