-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imported resource from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Received an invalid response. Origin 'null' is therefore not allowed access. #1535
Comments
Due to the way HTML imports work, Polymer requires a web server. You could try developing using Chrome Dev Editor, which has a built-in web server. https://chrome.google.com/webstore/detail/chrome-dev-editor-develop/pnoffddplpippgcfjdhbmhkofpnaalpg |
By design |
Those docs are old and vestigial, thanks for pointing out. We'll remove. The PRIMER.md and polymer-project.org website should be used for docs. |
You could alwasy just set up your own node server and then you can present these locally instead of pushing them to your own testing server. |
How about using polymer inside cordova ? |
We could easily start a web server by using python: |
You can consider using polymer starter kit as well and install the local development server. |
Wait what?? With the "new web" we will no longer be able to open HTML files from local files?? What the hell?? Can someone perhaps point me to some documentation of this? |
@stevenroose Opening an HTML file directly will work just fine via a file protocol URL. However, |
Only when that file doesn't import other files. What if I want to create an offline-capable browser dashboard that does use htmlimports? |
Operating offline isn't the issue. The protocol is the issue. file:// requests will not work, but you can run a local web server (polymer serve, express, etc.) to use HTTP requests instead. You could even use the following Chrome extension to run a local web server. |
@stevenroose , this isn't an issue in Edge |
I did the same site as the Making app for 10 minutes , and Chrome
display and white image , the Inspect element was a bug as its title .
Also, bower_components \ polymer \ docs \ index.html was a few files that did not exist . These are:
It is a version of the Polymer 0.5 .
Please look at this , I was two or three weeks looked for this.
The text was updated successfully, but these errors were encountered: