• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. User Guide
  4. OBS Console Operation Guide
  5. CORS
  6. CORS Overview

CORS Overview

OBS supports CORS rules and allows resources on OBS to be accessed across origins.

OBS supports static website hosting (for details, see Static Website Hosting). Static websites stored on OBS can respond to website requests from another origin only when CORS is configured for the bucket.

OBS CORS is used in the following scenarios:
  • Enables JavaScript and HTML5 to be used for establishing web applications that can directly access resources on OBS. No proxy servers are required for transfer.
  • Enables the dragging function of HTML5 to be used to upload files to OBS (with the upload progress displayed) or update OBS contents using web applications.
  • Hosts external web pages, style sheets, and HTML5 applications in different origins. Web fonts or pictures on OBS can be shared by multiple websites.

The configuration of CORS takes effect within two minutes.