Skip to content

Commit 8231d3d

Browse files
committed
cors safe
Signed-off-by: Arya Pratap Singh <notaryasingh@gmail.com>
1 parent 274e00d commit 8231d3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/run_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
app = FastAPI()
1414
app.add_middleware(
1515
CORSMiddleware,
16-
allow_origins=["http://localhost:3000","https://learn-coding-with-copilotkit.vercel.app/"],
16+
allow_origins=["http://localhost:3000","https://learn-coding-with-copilotkit.vercel.app"],
1717
allow_credentials=True,
1818
allow_methods=["*"],
1919
allow_headers=["*"],
@@ -65,4 +65,4 @@ async def process_request(request: CopilotRequest) -> CopilotResponse:
6565

6666
if __name__ == "__main__":
6767
logger.info("Starting Copilot API server...")
68-
uvicorn.run(app, host="0.0.0.0", port=8000)
68+
uvicorn.run(app, host="https://learn-coding-with-copilotkit.onrender.com", port=8000)

0 commit comments

Comments
 (0)