@amepro,
Where are you seeing this error? Are you trying to access this on the frontend of your website or through code? What was the full url you hit when you received this error?
You probably just need some sort of authentication like a nonce if you’re hitting the api from outside of WordPress.
– Freddie
Thread Starter
amepro
(@amepro)
thanks for your answer, I’m creating a hybrid app and I’m making a call with axios, if you copy and paste my url you’ll see this error too
URL: https://www.ferentino.org/wp-json/wp/v2/media/3284
Thread Starter
amepro
(@amepro)
i don’t understand why?? all the content are visible only the featured image not…
Thread Starter
amepro
(@amepro)
How can i disable authentication on featured media ?
@amepro,
Could you let me know what plugins you’re currently using? The featured media should not need authentication and for some reason your site is restricting access.
– Freddie
I was just checking your api out and I’m able to see this media https://www.ferentino.org/wp-json/wp/v2/media/4378
Are you sure 3284 is the correct ID?
– Freddie
@amepro,
Just a tip I found out with featured media in the rest api. If you try to fetch a featured image from a post that isn’t published you’ll receive this error message.
Hope this helps,
Freddie