You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked the documentation and made sure this feature does not already exist
I checked the existing issues to make sure this feature has not already been requested
Feature
CORS is a concept for whitelisting the use of APIs from cross-origin resources, and is generally facilitated by flask-cors or CORS middleware in Python and Node js respectively. However, in the agentic deployment of Fetch AI, there is no direct support of this option and requires to be an essential parameter when creating an Agent.
Additional Information (Optional)
No response
The text was updated successfully, but these errors were encountered:
The current implementation works on the assumption that the used uvicorn (and in respect starlette) server is capable of accepting and properly implementing the necessary CORS handshake. During testing this seemed to have worked for certain domains but it was no reliable or satisfactory solution so we are aware of the need to update this in the future.
As you can see in the reference code for the asgi server we do already try to set the necessary headers during initialisation of the server so the next step if that doesn't work as expected is to actually add this middleware logic ourselves.
We are currently working on a major update to the server and it makes sense to add these acknowledgment messages from the agent there but feel free to take a stab at it!
And if it possible we'll take this over to the new server :)
Prerequisites
Feature
CORS is a concept for whitelisting the use of APIs from cross-origin resources, and is generally facilitated by flask-cors or CORS middleware in Python and Node js respectively. However, in the agentic deployment of Fetch AI, there is no direct support of this option and requires to be an essential parameter when creating an Agent.
Additional Information (Optional)
No response
The text was updated successfully, but these errors were encountered: