CORS error while connecting to S3(storage-s3)

I have setup an S3 bucket config in development-linux.json(/DocumentServer/server/Common/config/development-linux.json) with required access key and secret key, but when i try to open an document I’m getting CORS error, how to do fix the error? was not able to find any files to write CORS or use a config for it.

"storage": {
    "name": "storage-s3",
    "fs": {
      "folderPath": "",
      "urlExpires": 900,
      "secretString": "verysecretstring"
    },
    "region": "us-west-2",
    "endpoint": "https://s3.us-west-2.amazonaws.com/",
    "bucketName": "our-bucket-name",
    "storageFolderName": "word-office-cache",
    "urlExpires": 604800,
    "accessKeyId": "access-key",
    "secretAccessKey": "secret-key",
    "useRequestToGetUrl": true,
    "useSignedUrl": true,
    "sslEnabled": false,
    "s3ForcePathStyle": false,
    "externalHost": ""
  },

Document Server version:7.0.1
Connector version:
DMS (platform) version:
OS: Ubuntu 20.04LTS
Browser version: Google Chrome Version 99.0.4844.74 (Official Build) (64-bit)
Attach logs if possible.