Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -16,8 +16,8 @@ API_KEY = os.environ.get("API_KEY")
|
|
16 |
app = FastAPI()
|
17 |
# CORS issue write below code
|
18 |
origins = [
|
19 |
-
|
20 |
-
"http://192.168.0.104:3000",
|
21 |
]
|
22 |
app.add_middleware(
|
23 |
CORSMiddleware,
|
|
|
16 |
app = FastAPI()
|
17 |
# CORS issue write below code
|
18 |
origins = [
|
19 |
+
"http://localhost:3000", # Update this with the actual origin of your frontend
|
20 |
+
# "http://192.168.0.104:3000",
|
21 |
]
|
22 |
app.add_middleware(
|
23 |
CORSMiddleware,
|