Safari is blocking a js module even with the same origin (e.g. http://sub.example.com/)
Blocked http://sub.example.com/mymodule.js from asking for credentials because it is a cross-origin request.
[Error] Blocked http://sub.example.com/mymodule.js from asking for credentials because it is a cross-origin request.
[Error] Failed to load resource: the server responded with a status of 401 (Unauthorized) (mymodule.js, line 0)
The module is loaded as following:
<script type="module" src="/mymodule.js"></script>
Why is Safari executing a CORS Request for loading the script when calling the page http://sub.example.com/ and other browsers aren't having the same problem?