Strapi Media Image Throwing 403 error but works on direct browser

I am getting 403 error when I try to use img src=‘https://strapurl.com/uploads/img.png’ The URL works fine but I am getting an error when programmatically I try to do. Everything else the apis, graphql works.