diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/main.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/api/main.py b/api/main.py index e4d90f8..8465083 100644 --- a/api/main.py +++ b/api/main.py @@ -4,7 +4,15 @@ import pandas as pd app = FastAPI() -#CORS STUFF HERE +#/CORS STUFF HERE +origins = ["*"] +app.add_middleware( + CORSMiddleware, + allow_origins=origins, + allow_methods=["*"], + allow_headers=["*"], +) + app.include_router(get.router) |