Blocked by CORS Policy.(sovled)

When attempting to connect to my Colyseus server, I am met with the following error and I cannot figure out what to do about it.

"Access to XMLHttpRequest at '' from origin 'http://localhost' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request."

facing same issue. dev please help

If you're using Arena, please use wss:// instead of ws://