As per the title, how does one enable CORS on an API Gateway Socket?
Notoriously, Socket.io, since v3, requires the socket endpoint to have CORS enabled.
I have tried adding headers to the return response in my Lambda (see below), but that does not seem to work.
return { statusCode: 200, body: 'Connected', headers: {'Access-Control-Allow-Origin': '*'} };
Accesso non effettuato. Accedi per postare una risposta.
Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.