You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 9, 2023. It is now read-only.
Describe the bug
While browsing the asset library it can happen to show a password prompt just by changing the directory.
Also it can happen to show an "Unauthorized" error when a file is being uploaded.
TLDR: For me it looks like the amount of requests to /cp/assets/thumbnails/... to show thumbnails set a lot of cookies with different xsrf tokens which leads to session "corruption" (UI having outdated xsrf token)
To Reproduce
Steps to reproduce the behavior:
Go to 'Assets'
Click on a directory
Maybe go back to the parent directory
See prompt asking for the password
It helps to have a lot of images in the directories.
Expected behavior
It just works without asking for the password.
Environment details (please complete the following information):
Statamic Version 2.11.21
OS: Ubuntu 18.04
Browser: Chrome
Web Server: nginx
PHP Version: 7.2
Addons installed: some
Additional context
Prompt during browse is caused by an error on the POST /cp/assets/browse request.
The text was updated successfully, but these errors were encountered:
rrelmy
changed the title
Password prompt while browsing or uploading assets
Password prompt while browsing or error while uploading assets
Jul 13, 2021
This came up with another install again.
Could you try changing your session driver to cookie and let us know if this continues to happen?
In your .env file, change SESSION _DRIVER=file to SESSION DRIVER=cookie
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
While browsing the asset library it can happen to show a password prompt just by changing the directory.
Also it can happen to show an "Unauthorized" error when a file is being uploaded.
TLDR: For me it looks like the amount of requests to
/cp/assets/thumbnails/...
to show thumbnails set a lot of cookies with different xsrf tokens which leads to session "corruption" (UI having outdated xsrf token)To Reproduce
Steps to reproduce the behavior:
It helps to have a lot of images in the directories.
Expected behavior
It just works without asking for the password.
Environment details (please complete the following information):
Additional context
Prompt during browse is caused by an error on the
POST /cp/assets/browse
request.The text was updated successfully, but these errors were encountered: