EDIT: the following question was prompted by what seemed the only difference between two pages, one working correctly but not the other; see my answer below.
It seems that IE (at least versions 11 and 12) does not accept URLs such as
/a/b.js
used in contexts like
<script type="text/javascript" src="/a/b.js"></script>
I would appreciate any help on how to avoid this problem without resorting to using a URL of the form
http://somedomain/a/b.js
(the reason to not use this is that some browsers accept, eg.,
xyz
as meaning
http://www.xyz
but then block the use of resources with URLs starting as this last line by wrongly applying the Same Origin Policy).
Thanks in advance for any help!