How to configure Cross Origin Resource Sharing (CORS) - lwsjs/local-web-server GitHub Wiki
By default, ws will accept requests from any origin. To restrict access to a specific origin use --cors.origin.
This example will only accept XHR/fetch requests from http://127.0.0.1:8200.
$ ws --cors.origin http://127.0.0.1:8200