From 0719780c91ba6c1395f43e0c87715ad998812c89 Mon Sep 17 00:00:00 2001 From: SwiftyOS Date: Wed, 15 Nov 2023 10:53:11 +0100 Subject: [PATCH] Allowed all for CORS added autogpt to the arena --- arena/autogpt.json | 6 ++++++ autogpts/autogpt/autogpt/app/agent_protocol_server.py | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 arena/autogpt.json diff --git a/arena/autogpt.json b/arena/autogpt.json new file mode 100644 index 000000000000..931aa3aa5cf8 --- /dev/null +++ b/arena/autogpt.json @@ -0,0 +1,6 @@ +{ + "github_repo_url": "https://github.com/Significant-Gravitas/AutoGPT", + "timestamp": "2023-11-15T07:22:09.723393", + "commit_hash_to_benchmark": "fa357dd13928baa4d1e30054bc75edc5d68b08f1", + "branch_to_benchmark": "master" +} \ No newline at end of file diff --git a/autogpts/autogpt/autogpt/app/agent_protocol_server.py b/autogpts/autogpt/autogpt/app/agent_protocol_server.py index d59b79628745..9d5faa91b4e6 100644 --- a/autogpts/autogpt/autogpt/app/agent_protocol_server.py +++ b/autogpts/autogpt/autogpt/app/agent_protocol_server.py @@ -64,12 +64,7 @@ async def start(self, port: int = 8000, router: APIRouter = base_router): # Add CORS middleware origins = [ - "http://localhost:5000", - "http://127.0.0.1:5000", - "http://localhost:8000", - "http://127.0.0.1:8000", - "http://localhost:8080", - "http://127.0.0.1:8080", + "*", # Add any other origins you want to whitelist ]