Avoid credentialed Gradio fetches from custom domain

#42
OpenHands org

Add an early fetch shim for index.openhands.dev pages that changes only hf.space /gradio_api requests from credentials=include to credentials=omit. The HF runtime allows the custom origin but does not include Access-Control-Allow-Credentials on preflight responses, so credentialed browser requests are blocked before reaching the app.

This bypasses the broken custom-domain /gradio_api proxy and keeps Gradio API calls pointed at the hf.space runtime without requiring credentialed CORS.

Follow-up to OpenHands/openhands-index-results#1227.

juan-all-hands changed pull request status to merged

Sign up or log in to comment