Hi Daniel, If I am not wrong , files from GIt/bitbucket are exposed through HTTP and HTTPS .If it is wrong , how JS ans CSS works fine but not HTML files?
On Friday, July 21, 2017 at 11:36:53 PM UTC-5, Naga Sai A wrote: > > Hi > > I am trying to import polymer2.0 webcomponent html files from the bitbucket > > Getting below error when i try to serve components created > > Imported resource from origin 'file://' has been blocked from loading by > Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is > therefore not allowed access. > > I found that it is a CORS issue and HTML Imports follow the same > restrictions as XHR: > > But is there an option/workaround to import file from bitbucket/Git > without using webserver > > Imports are working fine for JS and CSS files from bitbucket/Git but not > HTML files > > > Thanks > Sai > 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/f00b6dd2-4d20-48ec-9309-27d205189d14%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
