diff --git a/public/.htaccess b/.htaccess.example similarity index 99% rename from public/.htaccess rename to .htaccess.example index 9debde5f..c6963558 100644 --- a/public/.htaccess +++ b/.htaccess.example @@ -1,3 +1,4 @@ + Header always set Access-Control-Allow-Origin "*" Header always set Access-Control-Allow-Methods "POST, GET, PUT, OPTIONS, PATCH, DELETE" diff --git a/composer.json b/composer.json index ac06f6f3..ea21c6e8 100644 --- a/composer.json +++ b/composer.json @@ -78,7 +78,8 @@ "post-install-cmd": [ "@php artisan clear-compiled", "@php artisan cache:clear", - "@php -r \"if (!file_exists('.env')) copy('.env.example', '.env');\"" + "@php -r \"if (!file_exists('.env')) copy('.env.example', '.env');\"", + "@php -r \"if (!file_exists('./public/.htaccess')) copy('.htaccess.example', './public/.htaccess');\"" ], "pre-update-cmd": [ "@php artisan clear-compiled"