Skip to content

Commit

Permalink
Update CORS middleware configuration to use starlette in picpilot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
VikramxD committed Oct 16, 2024
1 parent 4d48a04 commit be02ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/picpilot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from configs.tti_settings import tti_settings
from outpainting_serve import OutpaintingAPI
from image2video_serve import ImageToVideoAPI
from fastapi.middleware.cors import CORSMiddleware
from starlette.middleware.cors import CORSMiddleware

cors_middleware = (CORSMiddleware, {"allow_origins": ["*"], "allow_credentials": True, "allow_methods": ["*"], "allow_headers": ["*"],})

Expand Down

0 comments on commit be02ce9

Please sign in to comment.