Images access forbidden #1676
-
Hey, Probably something easy on my part, but for some reason I am getting below error on my frontend when trying to access images from CMS:
All my collections are accessed using the same client and basic Authentication with JWT token. Below is my Image Collection config:
I am also using CloudStorage access for non-local application:
Probably something easy, but I cannot locate it. All the other collections are normally retrieved. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This makes sense, you should define a read access control on your image collection, like so: access: {
read: () => true
} Access control defaults to checking if a user exists on the request, which is why they appear when you are logged in. |
Beta Was this translation helpful? Give feedback.
-
Just a note, if anyone encounters it as well: While this might have been partially an issue as well, my main issue was oauthproxy wall I had on my Frontend and CMS. Weird that it only affected images, but lifting oauth wall from Thanks for the answer though! |
Beta Was this translation helpful? Give feedback.
This makes sense, you should define a read access control on your image collection, like so:
Access control defaults to checking if a user exists on the request, which is why they appear when you are logged in.