Skip to content Skip to sidebar Skip to footer

Html Import Not Working In Chrome

According to this article, it is possible to use HTML Imports via Polymer on browsers other than the latest version of Chrome (which might be the only one enabling HTML Imports at

Solution 1:

It seems you were using file: protocol, which is blocked by Cross-Origin Resource Sharing policy.

W3C spec on HTML Imports:

All imports linked from documents that is the master document or the one in the import map must be loaded using potentially CORS-enabled fetch with mode set to "Anonymous".

You could try to run a server on localhost, that would help.

Post a Comment for "Html Import Not Working In Chrome"