I have deployed an AWS websocket API Gateway, backed by lambda functions. I can successfully connect and exercise the websocket service from websocketking.com
When I try connecting from my client app (Angular, socket.io v3) I get the following error:
Access to XMLHttpRequest at 'https://sockets.example.com/socket.io/?EIO=4&transport=polling&t=NRSfmDM' from origin 'http://www.example.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
How do I configure an AWS websocket API gateway to support CORS?
Thanks.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…