Skip to content
Snippets Groups Projects
Commit e5869e31 authored by robban64's avatar robban64
Browse files

fix: socket proxy

parent a987e4ae
No related branches found
No related tags found
No related merge requests found
Pipeline #47142 passed with warnings
......@@ -30,7 +30,7 @@ export const socketConnect = (role: 'Judge' | 'Operator' | 'Team' | 'Audience')
// The token is the JWT returned from the login/code API call.
const token = localStorage[`${role}Token`]
socket = io('localhost:5000', {
socket = io('/', {
transportOptions: {
polling: {
extraHeaders: {
......
......@@ -19,7 +19,7 @@ stream_handler = logging.StreamHandler()
stream_handler.setFormatter(formatter)
logger.addHandler(stream_handler)
sio = SocketIO(cors_allowed_origins="http://localhost:3000")
sio = SocketIO(cors_allowed_origins="*")
active_competitions = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment