How to run Polymer locally, without any web server? -


i have designed ui desktop app using polymer. when run app locally gives me following error : "imported resource origin 'file://' has been blocked loading cross-origin resource sharing policy: received invalid response. origin 'null' therefore not allowed access." desktop app need no internet connectivity , no web server. solution run app locally ? thanks

imports cannot work without web server because potentially violates of browser's security policies , sure know that.

here few solutions:

  • use local web-server python or node serve custom-elements
  • if use node-webkit wrap html, comes built-in server no worries web-server

p.s. using web-server safer choice.


Comments

Popular posts from this blog

java - Ebean enhancement ignores a model -

ubuntu - How to disable Kernel Module Signing in linux -

SQL php on different pages to Insert (mysqli) -