Get proper same-origin behaviour when loading modules

The browsers currently do not default to same-origin behaviour for
modules, so we need to be explicit in order for necessary
credentials to be passed along. This seems to be changing though,
but we need to wait for the browsers to actually roll out more
lenient defaults:

https://github.com/whatwg/fetch/pull/585
This commit is contained in:
Pierre Ossman 2017-10-09 16:00:38 +02:00
parent 544106c596
commit bf82644461
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@
});
</script>
<!-- actual script modules -->
<script type="module" src="app/ui.js"></script>
<script type="module" crossorigin="anonymous" src="app/ui.js"></script>
<!-- end scripts -->
</head>

View File

@ -74,7 +74,7 @@
</script>
<!-- actual script modules -->
<script type="module">
<script type="module" crossorigin="anonymous">
// Load supporting scripts
import * as WebUtil from './app/webutil.js';
import RFB from './core/rfb.js';