On 22 July 2017 at 23:11, Naga Sai A <[email protected]> wrote:
>
> 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?
>

​You specifically asked about HTML Imports without a web server. HTTP and
HTTPS are web protocols and therefore require a web server to serve them.
You stated the situation in your original email perfectly: HTML Imports
follow the same resource sharing constraints as XHR. That means that you
need your resources to either be on the same domain name as your website OR
include an appropriate access-control-allow-origin header on them
indicating your domain name as allowed to access. Neither of those are
possible via bitbucket AFAICT.

Aside: Git is not necessarily served via HTTP. That depends on the
repository you save your data into. Bitbucket are a Git hosting provider,
who happen to expose the files via HTTP as a feature. Bitbucket is not the
same as Git, and vice versa.​ You can use Git without a hosting provider,
or with a provider other than bitbucket, and many people do either and both
of these.

-- 
Daniel Llewellyn
Bowl Hat

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/CABtuYwdP4KagC-UMsmHHhCKWzCXOxGD2Qd9yTJveYg%3DE4AUvtg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to