comcode-org / hackmud_chat_web

ajax web client for hackmud
Other
8 stars 9 forks source link

Redirect from bare domain to www #117

Closed hackmud-dtr closed 3 years ago

hackmud-dtr commented 3 years ago

If you visit https://hackmud.com/chat, you are unable to login because access control checks on the XHR require requests to come from www.hackmud.com. This just adds a super quick and dirty JS redirect to fix the issue.

A MUCH better fix would be to allow bare-domain in the access checks, or just set up the webserver to 301 bare domain to www. But, I can't exactly do those in the repo, so here's a bad code band-aid instead.