diff --git a/extensions/openai/script.py b/extensions/openai/script.py index 283f7f90..2128444e 100644 --- a/extensions/openai/script.py +++ b/extensions/openai/script.py @@ -67,16 +67,8 @@ app.add_middleware( CORSMiddleware, allow_origins=["*"], allow_credentials=True, - allow_methods=["GET", "HEAD", "OPTIONS", "POST", "PUT"], - allow_headers=[ - "Origin", - "Accept", - "X-Requested-With", - "Content-Type", - "Access-Control-Request-Method", - "Access-Control-Request-Headers", - "Authorization", - ], + allow_methods=["*"], + allow_headers=["*"] )