diff --git a/CHANGELOG.md b/CHANGELOG.md index 66d7136..ccbf64e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # nystudio107/spin-up-craft Change Log +## 1.0.11 - 2023.03.02 +### Fixed +* Use a unique CSRF token name, to avoid issues with CSRF validation with multiple instances of Craft running on the same host (localhost) + ## 1.0.10 - 2023.03.02 ### Changed * Ship with empty `CRAFT_APP_ID` & `CRAFT_SECURITY_KEY` env vars, and generate them via the `run_queue.sh` script, so each instance will have unique values diff --git a/config/general.php b/config/general.php index 69dbd50..6a70b15 100644 --- a/config/general.php +++ b/config/general.php @@ -27,6 +27,10 @@ ->aliases([ '@web' => App::env('PRIMARY_SITE_URL'), ]) + // Use a unique CSRF token name, to avoid issues with CSRF validation with multiple instances of + // Craft running on the same host (localhost) + ->csrfTokenName(App::env('CRAFT_APP_ID')) + // Don't run the queue via web request, our queue container handles it ->runQueueAutomatically(false) // Set the default week start day for date pickers (0 = Sunday, 1 = Monday, etc.) ->defaultWeekStartDay(1)