Cross Origin Resource Policy error(sovled)

Hey!
I'm trying to use Colyseus with Godot 3.4. After including the js file in <header> like in the javascript documentation (third code snippet - <script src="https://unpkg.com/colyseus.js@^0.14.0/dist/colyseus.js"></script>), I'm getting an error after trying to run the game.

0_1643208745044_js error.png

Any ideas how to fix it?

Hi, Deiran!
This is because your js file hosted by https server but you try to get it without https (maybe locally).
You put you game into an https server and run it with your local browser, the error should gone.

Thank you COCO!
I also found another workaround, which was to set the src to another site that has CORP set to cross-origin,
namely https://cdn.jsdelivr.net/npm/colyseus.js@0.14.13/dist/colyseus.min.js