I\'ve got a (Polymer) web component that I want to make accessible to people in a cross-origin resource sharing (CORS) fashion. That works fine except I\'m not sure how I c
I found out that you can access the URL of the import from within a script inside it with document.currentScript.baseURI. I'm doing something like this:
One problem: the code above isn't working when I vulcanize everything because the paths change. I'll look into that one a bit later.