Spaces:
Sleeping
Sleeping
Fix: Fix Exec Commands
Browse files
main.py
CHANGED
|
@@ -21,6 +21,8 @@ class AppCreator:
|
|
| 21 |
self.container = Container()
|
| 22 |
self.db = self.container.db()
|
| 23 |
# self.db.create_database()
|
|
|
|
|
|
|
| 24 |
|
| 25 |
# set cors
|
| 26 |
if configs.BACKEND_CORS_ORIGINS:
|
|
@@ -30,6 +32,7 @@ class AppCreator:
|
|
| 30 |
allow_credentials=True,
|
| 31 |
allow_methods=["*"],
|
| 32 |
allow_headers=["*"],
|
|
|
|
| 33 |
)
|
| 34 |
|
| 35 |
# set routes
|
|
|
|
| 21 |
self.container = Container()
|
| 22 |
self.db = self.container.db()
|
| 23 |
# self.db.create_database()
|
| 24 |
+
|
| 25 |
+
print(f"DEBUG: CORS Origins loaded: {configs.BACKEND_CORS_ORIGINS}")
|
| 26 |
|
| 27 |
# set cors
|
| 28 |
if configs.BACKEND_CORS_ORIGINS:
|
|
|
|
| 32 |
allow_credentials=True,
|
| 33 |
allow_methods=["*"],
|
| 34 |
allow_headers=["*"],
|
| 35 |
+
|
| 36 |
)
|
| 37 |
|
| 38 |
# set routes
|