title: AWS: S3 Bucket AWS You can't grant public access because Block public access settings are turned on for this account
body: <p>I want to make S3 bucket public to everyone but I get access denied when I do That and it Says</p>
  
  <pre><code>You can't grant public access because Block public access settings 
  are turned on for this account. To determine which settings are 
  turned on, check your Block public access settings.
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/gbhK0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gbhK0.png" alt="enter image description here"></a></p>
  
  <p>When I go to public access settings everything is turned off.</p>
  
  <p><a href="https://i.stack.imgur.com/U444H.png" rel="noreferrer"><img src="https://i.stack.imgur.com/U444H.png" alt="enter image description here"></a></p>
  
  <p>I did set IAM User and User has AmazonS3FullAccess policy </p>
  
  <pre><code>{
  "Version": "2012-10-17",
  "Statement": [
      {
          "Effect": "Allow",
          "Action": "s3:*",
          "Resource": "*"
      }
    ]
   }
  </code></pre>
  
  <p>I did set policy on the bucket </p>
  
  <pre><code>{
  "Version": "2012-10-17",
  "Id": "Policy1557294263403",
  "Statement": [
      {
          "Sid": "Stmt1557294241958",
          "Effect": "Allow",
          "Principal": {
              "AWS": "arn:aws:iam::726051891502:user/borroup-admin"
          },
          "Action": "s3:*",
          "Resource": [
              "arn:aws:s3:::borroup",
              "arn:aws:s3:::borroup/*"
          ]
        }
      ]
   }
  </code></pre>
  
  <p>I did set CORS configuration editor on the bucket </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"&gt;
  &lt;CORSRule&gt;
  &lt;AllowedOrigin&gt;*&lt;/AllowedOrigin&gt;
  &lt;AllowedMethod&gt;GET&lt;/AllowedMethod&gt;
  &lt;AllowedMethod&gt;POST&lt;/AllowedMethod&gt;
  &lt;AllowedMethod&gt;PUT&lt;/AllowedMethod&gt;
  &lt;MaxAgeSeconds&gt;3000&lt;/MaxAgeSeconds&gt;
  &lt;AllowedHeader&gt;Authorization&lt;/AllowedHeader&gt;
  &lt;/CORSRule&gt;
  &lt;/CORSConfiguration&gt;
  </code></pre>