I can’t seem to figure out why the Genesys Cloud Web Messaging SDK triggers a CORS error when initializing via the Guest API in a Next.js application during server-side rendering. The browser console reports Access-Control-Allow-Origin is missing when the widget attempts to handshake with https://api.mypurecloud.com/api/v2/conversations/messaging, despite the origin header being correctly set in the SDK configuration object.
Access to fetch at 'https://api.mypurecloud.com/api/v2/conversations/messaging' from origin 'https://myapp.vercel.app' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
The issue persists even when disabling Next.js hydration for the widget component. Is there a specific header or initialization sequence required for the Guest API to bypass strict CORS enforcement in a server-rendered context?