title: Failed to fetch when I thy to upload file to S3 use JS Vue
body: <p>I try to upload file to my s3 bucket use this library <a href="https://github.com/Fausto95/aws-s3" rel="nofollow noreferrer">https://github.com/Fausto95/aws-s3</a> and I get this error in the console:</p>
  <p><a href="https://i.stack.imgur.com/lk47U.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lk47U.png" alt="enter image description here" /></a></p>
  <p>this is code of component:</p>
  <pre><code>&lt;template&gt;
    &lt;input type=&quot;file&quot; @change=&quot;uploadFile(fieldName, $event.target.files)&quot;/&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
  import S3 from 'aws-s3';
  
  export default {
    computed: {
      config() {
        return {
          bucketName: 'in-converter-bucket',
          dirName: '', /* optional */
          region: 'eu-west-2',
          accessKeyId: 'AKIAZSUESKSZVZTI55PV',
          secretAccessKey: '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',
          s3Url: 'https://s3.console.aws.amazon.com/s3/buckets/in-converter-bucket?region=us-west-2&amp;tab=objects', /* optional */
        }
      },
      S3Client() {
        return new S3(this.config);
      }
    },
    methods: {
      uploadFile(fieldName, files) {
        let file = files[0]
        this.S3Client
        .uploadFile(file, '324')
        .then(data =&gt; console.log(data))
        .catch(err =&gt; console.error(err))
      }
    },
    props: ['fieldName', 'obj']
  }
  
  &lt;/script&gt;
  </code></pre>
  <p>Any help will be very useful</p>