Access is denied when I tried to access the local HTML files instead of local Host

1,647 views
Skip to first unread message

maks...@gmail.com

unread,
May 16, 2014, 3:30:11 PM5/16/14
to polym...@googlegroups.com
Hi ,

I am new to the web developement and learning the HTML5 and all the web components for couple of months. I found Polymer is really exciting. I started with the simple application with Polymer creating custom elements( using HTML imports) and when I tried to render in Mozilla(29) - it works even it is not access thru localhost. But when i switched to IE11, it works only thru local host (https://) and not as local file(file://). 

I faced similar issue while using the Jquery.min.js(AJAX while calling another HTML in parent HTML) ,  as suggested by Jquery forum, I changed window.activex condition in the Jquery.min.js and able to render it as file://.

Can you please suggest some way i could render the file as local in IE 11(Windows 7)?


Thanks,
Maksymas

Scott Miles

unread,
May 16, 2014, 3:35:33 PM5/16/14
to maks...@gmail.com, polymer-dev
You may be able to make it work by changing IE's security settings to allow requests over file://.

But really I suggest that all web developers get themselves a local web-server and never use file://. 

It's not that hard, and it's worth it.


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 polymer-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/polymer-dev/e4618adf-e3e0-4c99-ad67-ac72204dd660%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

maks...@gmail.com

unread,
May 16, 2014, 4:55:33 PM5/16/14
to polym...@googlegroups.com, maks...@gmail.com
Thanks for the response. 

My business requirement is to render in  the file:// .

I am not able to find any security setting related to that . Do you know any reference so that I could check?

Thanks
Maksymas

maks...@gmail.com

unread,
May 20, 2014, 3:25:43 PM5/20/14
to polym...@googlegroups.com, maks...@gmail.com
It seems to be that is the issue with the polymer library -

I could see the below error:
Error: Access is denied
 at h.load
at l.prototype.fetch
 at l.prototype.addNodes
..

and so forth

Can you please help?
Thanks


Scott Miles

unread,
May 20, 2014, 3:49:11 PM5/20/14
to manoj sharma, polymer-dev
Your browser is denying Polymer access to the network via the 'file://' protocol.

Polymer cannot solve this problem, you can solve it either by altering your browser's security settings or not using 'file://'.


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 polymer-dev...@googlegroups.com.

maks...@gmail.com

unread,
May 20, 2014, 4:36:09 PM5/20/14
to polym...@googlegroups.com, manoj sharma
I tried all the possible setting suggested in the internet and I am unable to solve the issue! Polymer still shouts "Access is denied"
And this stops me from using the Polymer library . I am not sure if anyone else hasn't faced the same issue? and why there is not work around for it?
So obvious issue but no fixes.
Thanks

Daniel Freedman

unread,
May 20, 2014, 5:29:20 PM5/20/14
to maks...@gmail.com, polymer-dev
There is a work around that may work. If you use the vulcanize tool to inline all of the polymer elements, then there probably will not be any "Access Denied" errors.

After installing vulcanize (see the link above), you can run `vulcanize --inline index.html` and it will build a file called `vulcanized.html` that should have no external dependencies anymore.

However, this is just a workaround, and I cannot guarantee that it will work for you.

In general, running web applications from file:/// is not advisable due to security concerns, which is why all browser vendors have made it difficult.

I suggest that you find a way to alter your business requirements on this issue, or it will only become more problematic for you in the future.


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 polymer-dev...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages