Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,7 +15,6 @@ SUPABASE_SERVICE_KEY = os.getenv("SUPABASE_SERVICE_ROLE_KEY")
|
|
| 15 |
JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY")
|
| 16 |
ALGORITHM = "HS256"
|
| 17 |
# This should be the URL of your deployed frontend app (e.g., Vercel)
|
| 18 |
-
FRONTEND_URL = os.getenv("FRONTEND_URL", "http://localhost:3000")
|
| 19 |
|
| 20 |
# --- Initialization ---
|
| 21 |
app = FastAPI()
|
|
@@ -31,8 +30,8 @@ except Exception as e:
|
|
| 31 |
# This allows your frontend to make requests to this backend
|
| 32 |
app.add_middleware(
|
| 33 |
CORSMiddleware,
|
| 34 |
-
allow_origins=[
|
| 35 |
-
allow_credentials=
|
| 36 |
allow_methods=["*"],
|
| 37 |
allow_headers=["*"],
|
| 38 |
)
|
|
|
|
| 15 |
JWT_SECRET_KEY = os.getenv("JWT_SECRET_KEY")
|
| 16 |
ALGORITHM = "HS256"
|
| 17 |
# This should be the URL of your deployed frontend app (e.g., Vercel)
|
|
|
|
| 18 |
|
| 19 |
# --- Initialization ---
|
| 20 |
app = FastAPI()
|
|
|
|
| 30 |
# This allows your frontend to make requests to this backend
|
| 31 |
app.add_middleware(
|
| 32 |
CORSMiddleware,
|
| 33 |
+
allow_origins=["*"],
|
| 34 |
+
allow_credentials=False,
|
| 35 |
allow_methods=["*"],
|
| 36 |
allow_headers=["*"],
|
| 37 |
)
|