docs: def _put_bucket_cors(self):
          """Adds bucket cors configuration."""
          if self.s3props['cors']['enabled'] and self.s3props['website']['enabled']:
              cors_config = {}
              cors_rules = []
              for each_rule in self.s3props['cors']['cors_rules']:
                  cors_rules.append({
                      'AllowedHeaders': each_rule['cors_headers'],
                      'AllowedMethods': each_rule['cors_methods'],
                      'AllowedOrigins': each_rule['cors_origins'],
                      'ExposeHeaders': each_rule['cors_expose_headers'],
                      'MaxAgeSeconds': each_rule['cors_max_age']
                  })
              cors_config = {
                  'CORSRules': cors_rules
              }
              LOG.debug(cors_config)
              _response = self.s3client.put_bucket_cors(Bucket=self.bucket, CORSConfiguration=cors_config)
          else:
              _response = self.s3client.delete_bucket_cors(Bucket=self.bucket)
          LOG.debug('Response setting up S3 CORS: %s', _response)
          LOG.info('S3 CORS configuration updated')