Fix forms: return JSON instead of redirect for AJAX compatibility
- send_plan.php: replace redirect with JSON response - send_ask.php: replace redirect with JSON response - Fixes white page issue (fetch API doesn't follow redirects) - Update .gitignore: allow forms folder but protect .env file
This commit is contained in:
+1
-1
@@ -45,7 +45,7 @@ gitea.pub
|
||||
telegram/
|
||||
migration-s3/
|
||||
INFO/
|
||||
forms/
|
||||
forms/.env
|
||||
|
||||
# Debug and test pages - не для продакшена
|
||||
static/debug-*.html
|
||||
|
||||
Reference in New Issue
Block a user