rgero / Fajita

A custom YouTube wrapper designed to maintain a group video queue during gatherings, written in Typescript, utilizing React, MaterialUI, a custom backend, and websockets
0 stars 0 forks source link

On websocket events, please add the user_id to the extraHeaders #16

Closed rgero closed 4 months ago

rgero commented 5 months ago

Vince's request

Something like this

const socket = io('http://bowie.local:8000/', {
    withCredentials: true,
    extraHeaders: {
        "Access-Control-Allow-Origin": "http://bowie.local:5173/",  // Match the origin allowed by Flask-SocketIO
        "user_id": user_id    }
});