Accessing images in local network

Hi there, i have a problem accessing directus files (images) in my local network, I’m using directus with docker and nuxt js for the front-end. I can access the files from http://localhost:8055/assets/fileId but if i try to see my progress in my phone from an ip like http://192.168.1.10:8055/assets/fileId i get an error that says forbidden you don’t have permission to access this collection

The error : {“errors”:[{“message”:“You don’t have permission to access collection \“directus_files\” or it does not exist. Queried in root.”,“extensions”:{“reason”:“You don’t have permission to access collection \“directus_files\” or it does not exist. Queried in root.”,“code”:“FORBIDDEN”}}]}

Please could any one help me, i have no idea why this is happening, i tried everything i could, changing the public url or allow all for cors, i couldn’t figure it out

@Kratos

It’s most likely not a Docker or CORS issue but a permissions issue. When you access it via localhost, you’re probably already authenticated in your browser, so Directus allows the request. But when you open it from your phone using the local IP, it’s treated as a public (unauthenticated) request, and if the Public role doesn’t have read access to directus_files, it will return a forbidden error. Check the Public role permissions and make sure read access to files is enabled, or try logging in with a user. If the assets are supposed to be public, you can also create a folder with public access so that files inside it can be accessed without logging in.

Hi, the permissions for the public to read directus files and products collection are implemented, i have a products collection where i have some properties like name price etc… and i have a property images that have an m2m relation with directus files. That’s all