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
Adding read access to the directus_files collection does not give public access to specific assets.
To Reproduce
Upload an image
Set public access for Directus Files to Read
Try to open the path to the image: https://slug.directus.app/assets/id
Get a 403 with: You don't have permission to access this
I've also tried giving all permissions for all things on public, hoping that one of them might trigger it so I could get there by process of elimination, but that didn't help either. Note that the image does load when adding a token as a param to the url, or sending it through the headers.
Errors Shown
{
"errors": [
{
"message": "You don't have permission to access this.",
"extensions": {
"code": "FORBIDDEN"
}
}
]
}
What version of Directus are you using?
9.9.1
What version of Node.js are you using?
PaaS - unsure
What database are you using?
PaaS - unsure
What browser are you using?
Chrome
How are you deploying Directus?
PaaS
The text was updated successfully, but these errors were encountered:
I can confirm that accessing assets seems to have problems with 9.9.1. I just updated from 9.5.0 to 9.9.1 and my images are not being displayed anymore.
Did the process of accessing assets somehow change?
As OP's issue should be cloud-specific and it should be resolved, I'll close this for now. Will re-open if it turns out to be not the case.
@ndee85 is there any info on the problems such as error logs in the terminal or in the browser console? Could it be CSP (Content Security Policy) related? Happy to debug further if necessary!
Describe the Bug
Adding read access to the directus_files collection does not give public access to specific assets.
To Reproduce
I've also tried giving all permissions for all things on public, hoping that one of them might trigger it so I could get there by process of elimination, but that didn't help either. Note that the image does load when adding a token as a param to the url, or sending it through the headers.
Errors Shown
What version of Directus are you using?
9.9.1
What version of Node.js are you using?
PaaS - unsure
What database are you using?
PaaS - unsure
What browser are you using?
Chrome
How are you deploying Directus?
PaaS
The text was updated successfully, but these errors were encountered: