Spaces:
Sleeping
Sleeping
dhruv575 commited on
Commit ·
f658de1
1
Parent(s): b780b82
New URL!
Browse files
app.py
CHANGED
|
@@ -112,7 +112,8 @@ else:
|
|
| 112 |
# Enable CORS with specific origins
|
| 113 |
origins = [
|
| 114 |
"http://localhost:3000", # Development frontend
|
| 115 |
-
"https://www.tryenflow.com" # Production frontend
|
|
|
|
| 116 |
]
|
| 117 |
try:
|
| 118 |
CORS(app, resources={r"/api/*": {"origins": origins}}, supports_credentials=True)
|
|
|
|
| 112 |
# Enable CORS with specific origins
|
| 113 |
origins = [
|
| 114 |
"http://localhost:3000", # Development frontend
|
| 115 |
+
"https://www.tryenflow.com", # Production frontend
|
| 116 |
+
"https://droov-enflow-api.hf.space" # Add the Hugging Face Space URL
|
| 117 |
]
|
| 118 |
try:
|
| 119 |
CORS(app, resources={r"/api/*": {"origins": origins}}, supports_credentials=True)
|