How to make a get object request on an s3 bucket

I have a lambda function that makes a GetObject request to an s3 bucket. However im getting the following error:

AccessDenied: Access Denied\n at deserializeAws_restXmlGetObjectCommandError (/node_modules/@aws-sdk/client-s3/dist-cjs/protocols/Aws_restXml.js:6284:41)

I thought i had given access to the lambda function to make this request.

        provider.iamRoleStatements: [
            {
                Effect: "Allow",
                Action: ["s3:GetObject"],
                Resource: "arn:aws:s3:::<redacted>",
            },
        ],

CORS is for Requests made with an Options header. If you have only granted s3:GetObject access to anyone then that is why you can perform a Get Object request but not a List bucket which Showbox jiofi.local.html tplinklogin requires the s3:ListBucket permission.