A user reports that their previously functional AI chatbot widget on their website has stopped working due to a CORS policy error after a recent Gradio update. The error indicates that the 'Access-Control-Allow-Credentials' header in the response is empty, which conflicts with the client's request credentials mode.
- The client-side JavaScript code uses `@gradio/client` to connect to a Hugging Face Space and send messages via the `/chat` API endpoint.
- The server-side Python code utilizes `gr.ChatInterface` with an OpenAI model integration and handles conversation history.
- The user notes that Gradio fixed a security issue related to CORS, which appears to have broken the existing implementation.
The article highlights the need for updated configuration or code adjustments to comply with new CORS requirements in Gradio while maintaining cross-origin functionality.