Skip to content

Commit

Permalink
Get proper same-origin behaviour when loading modules
Browse files Browse the repository at this point in the history
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:

whatwg/fetch#585
  • Loading branch information
CendioOssman committed Oct 9, 2017
1 parent c6edfe4 commit f0694f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vnc.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
2 changes: 1 addition & 1 deletion vnc_lite.html
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit f0694f6

Please sign in to comment.