There is a txt file on oss. How does the front end use js to get the content of txt? Can it be realized?

there is a txt file on oss. How does the front end use js to get the contents of txt? Can
be implemented?

Mar.20,2021

Ali's OSS? You mean direct front-end access?

  1. if you do not need verification, you can enable OSS public network access through the Aliyun console, and then give you a prefix domain name, such as http://test-image.oss-cn-hang., where test-image is your bucket name.
  2. if verification is needed, Ali Cloud console acquires the AK information of RAM (access control), then the front end makes the signature, and calls API (you can directly use the official SDK) to obtain
  3. .
Menu