fix: resolve Sveden upload permissions and CSRF cookie issue

- Add hostgroup (GID 1000) to Dockerfile so www-data inside container can write to sveden/
- Add credentials: 'same-origin' to fetch calls in Sveden.vue and QuickUpload.vue to send session cookies
This commit is contained in:
F4ilji
2026-07-01 13:10:59 +05:00
parent c9fca0bf29
commit 80b88405f1
3 changed files with 6 additions and 0 deletions
+4
View File
@@ -55,6 +55,10 @@ RUN curl -sS https://getcomposer.org/installer | php -- \
# Создание необходимых директорий для Laravel
RUN mkdir -p storage/framework/views storage/framework/sessions storage/framework/cache storage/logs bootstrap/cache
# Добавляем www-data в группу с GID=1000 (совпадает с GID хост-пользователя)
RUN groupadd -g 1000 hostgroup 2>/dev/null || true \
&& usermod -aG hostgroup www-data
# Установка правильных прав доступа
RUN chown -R www-data:www-data storage bootstrap/cache \
&& chmod -R 775 storage bootstrap/cache