Update CORS settings, enhance API URL detection, and improve template rendering
- Added new CORS origins for local development and specific IP addresses in `settings.py`. - Refactored API URL retrieval logic in `loadSiteDefinition.ts` and `fileAccess.ts` to auto-detect based on the current origin. - Enhanced error handling in API calls and improved logging for better debugging. - Updated `renderTemplate` function to support additional block types and improved rendering logic for various components in `templateEngine.tsx`.
This commit is contained in:
Binary file not shown.
@@ -454,11 +454,17 @@ CORS_ALLOWED_ORIGINS = [
|
||||
"https://app.igny8.com",
|
||||
"https://igny8.com",
|
||||
"https://www.igny8.com",
|
||||
"https://sites.igny8.com",
|
||||
"http://localhost:5173",
|
||||
"http://localhost:5174",
|
||||
"http://localhost:5176",
|
||||
"http://localhost:8024",
|
||||
"http://localhost:3000",
|
||||
"http://127.0.0.1:5173",
|
||||
"http://127.0.0.1:5174",
|
||||
"http://127.0.0.1:5176",
|
||||
"http://127.0.0.1:8024",
|
||||
"http://31.97.144.105:8024",
|
||||
]
|
||||
|
||||
CORS_ALLOW_CREDENTIALS = True
|
||||
|
||||
Reference in New Issue
Block a user