Hey guys , my first topic here - so please bear with me…
Context:
We are building an API PROXY to centralize all services under the same domain and API GW.
Problem:
I need to redirect a websocket $connect event to a legacy address
Solution?
Lambda redirects with 301 and sends Location
header
exports.wsHandler = async (event, _context, _calllback) => { // Redirect URL return { statusCode: 301, headers: { Location: 'wss://oldendpoint.com/subscriptions', }, }; }
Problem again…
No cors on API GW Websockets so I can tell it to accept Location
header
Anyway I can explicit my API GW to accept the headers?
Thanks in advance