Skip to content

Commit

Permalink
Allow alternate origins
Browse files Browse the repository at this point in the history
  • Loading branch information
dans98 committed Nov 9, 2021
1 parent 1a86ec0 commit b9931d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ async def broadcast(cl, message):
except tornado.iostream.StreamClosedError:
pass

def check_origin(self, origin):
return True

class indexHandler(tornado.web.RequestHandler):
def get(self):
self.write(indexHtml)
Expand Down

0 comments on commit b9931d2

Please sign in to comment.