Getting cors error while hosting on colyseus arena (solved)

Hey all, hope you are having a great day.
I have recently tried hosting my Colyseus server on Colyseus arena, but unfortunately getting constant CORS error. Previously I was able to successfully host the same server on Heroku with the same CORS configurations.
This is the error I am getting :
0_1634225921388_d6ba7cab-9988-4b3a-9209-cb5821f1182d-image.png
This is the my arena.config.js :
0_1634226108490_22fa59b4-984e-4b35-b3b5-441fa5d97dcb-image.png
Any help is appreciated.

Hi @adistar, welcome! I wonder if you still have the same issue if removing app.use(cors())? The server does use CORS by default.

Hi @endel, thanks for a quick reply. Yes, its working after I removed the CORS configuration and carefully followed the deployment logs.
Thanks again.