I have a LangGraph server deployed on Railway that was working fine with LangSmith Studio until a few days ago. Now I’m getting this error:
Error: Failed to connect to Agent Server because the origin is not allowed. Connect to a different server or add the origin to the allowed origins list.
It works fine locally with langgraph dev. And it was also working fine in prod.The server itself is responding correctly, CORS headers are correct
Has something changed recently on LangSmith’s side regarding connecting to external/self-hosted servers? Any help would be appreciated!
I can confirm that https://smith.langchain.com/studio/?baseUrl=http://serverenpoint no longer works. However, when you click “Connect to local server“, it opens a new window. Entering the base_url and adding the endpoint to the allowed origins(in Advanced Settings) fixes the issue. I successfully connected to the endpoint.