Spaces:
Sleeping
Sleeping
Commit ·
d8ea1e0
1
Parent(s): 1b321bd
fix: remove UseHttpsRedirection for HF Space HTTP-only env
Browse files- FlowAPI/Program.cs +2 -1
FlowAPI/Program.cs
CHANGED
|
@@ -241,7 +241,8 @@ namespace FlowAPI
|
|
| 241 |
}
|
| 242 |
|
| 243 |
app.UseCors("AllowAll");
|
| 244 |
-
|
|
|
|
| 245 |
|
| 246 |
app.Use(async (context, next) =>
|
| 247 |
{
|
|
|
|
| 241 |
}
|
| 242 |
|
| 243 |
app.UseCors("AllowAll");
|
| 244 |
+
// Note: UseHttpsRedirection is intentionally omitted.
|
| 245 |
+
// HF Space handles TLS termination at the proxy level; the app runs on plain HTTP internally.
|
| 246 |
|
| 247 |
app.Use(async (context, next) =>
|
| 248 |
{
|